Dex.MainScheduler
Description: Reference for Dex.MainScheduler

### Class

# DexMainScheduler

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

#### Hierarchy

#### Ancestors

- DexScheduler
- DexObject

#### Instance methods

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

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

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