Dex.Block

g Dex.Block Dex.Block Dex.Future Dex.Future Dex.Future->Dex.Block Dex.Object Dex.Object Dex.Object->Dex.Future

Subclasses:

None

Methods

Inherited:

Dex.Future (51), Dex.Object (2)

get_kind ()

get_scheduler ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Block
Bases:

Dex.Future

Abstract:

No

DexBlock represents a callback closure that can be scheduled to run within a specific [struct`GLib`.MainContext].

You create these by chaining futures together using [ctor`Dex`.Future.then], [ctor`Dex`.Future.catch], [ctor`Dex`.Future.finally] and similar.

get_kind()
Returns:

the [enum`Dex`.BlockKind] associated with the self

Return type:

Dex.BlockKind

Gets the kind of block.

The kind of block relates to what situations the block would be executed such as for handling a future resolution, rejection, or both.

get_scheduler()
Returns:

the [class`Dex`.Scheduler] associated with the self

Return type:

Dex.Scheduler

Gets the scheduler to use when executing a block.