Class

DexCoroutine

Description [src]

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

DexCoroutine is a DexFuture implemented as a stateful stackless coroutine cooperatively scheduled on a DexScheduler.

Each coroutine stores stackless suspension state and optionally accepts user data via user_data.

Use user data passed at spawn time for stateful data.

Cancellation keeps user data alive until pending work completes. The destroy callback runs on the coroutine’s scheduler thread and must not block.

Hierarchy

hierarchy this DexCoroutine ancestor_0 DexFuture ancestor_0--this ancestor_1 DexObject ancestor_1--ancestor_0

Ancestors

Instance methods

Methods inherited from DexFuture (25)

Please see DexFuture for a full list of methods.

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.

Class structure

struct DexCoroutineClass {
  /* no available fields */
}

No description available.