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 (48), Dex.Object (2)

get_kind ()

get_scheduler ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Block
Bases:

Dex.Future

Abstract:

No

Dex.Block represents a callback closure that can be scheduled to run within a specific GLib.MainContext.

You create these by chaining futures together using Dex.Future.then(), Dex.Future.catch(), Dex.Future.finally_() and similar.

get_kind()
Returns:

a Dex.BlockKind

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:

a Dex.Scheduler

Return type:

Dex.Scheduler

Gets the scheduler to use when executing a block.