### Class

# Dex MainScheduler

#### 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.

#### Ancestors

- DexScheduler
- DexObject

#### Instance methods

##### Methods inherited from DexScheduler (5)

###### dex_scheduler_get_main_context

Gets the default main context for a scheduler.

###### dex_scheduler_push

Queues `func` to run on `scheduler`.

###### dex_scheduler_spawn

Request `scheduler` to spawn a `DexFiber`.

###### dex_scheduler_spawn_coroutine

Request `scheduler` to spawn a `DexCoroutine` and execute `func` with user data.

unstable since: 1.2

###### dex_scheduler_spawnv

Same as `dex_scheduler_spawn()` but trampolines into a fiber without having to create special structures on the way there.

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

###### dex_ref

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

###### dex_unref

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