### Class

# Dex MainScheduler

unstable since: 1

#### Description [src]

    final class Dex.MainScheduler : GObject.TypeInstance
    {
      /* No available fields */
    }

`DexMainScheduler` is the scheduler used on the default thread of an application. It is meant to integrate with your main loop.

This scheduler does the bulk of the work in an application.

Use `DexThreadPoolScheduler` when you want to offload work to a thread and still use future-based programming.

Available since: 1

#### Ancestors

- DexScheduler
- DexObject

#### Instance methods

##### Methods inherited from DexScheduler (3)

###### dex_scheduler_get_main_context

Gets the default main context for a scheduler.

unstable since: 1

###### dex_scheduler_push

Queues `func` to run on `scheduler`.

unstable since: 1

###### dex_scheduler_spawn

Request `scheduler` to spawn a `DexFiber`.

unstable since: 1

##### Methods inherited from DexObject (2)

###### dex_ref

Acquires a reference on the given object, and increases its reference count by one.

unstable since: 1

###### dex_unref

Releases a reference on the given object, and decreases its reference count by one.

unstable since: 1