### Class

# Dex Fiber

#### Description [src]

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

`DexFiber` is a fiber (or coroutine) which itself is a `DexFuture`.

When the fiber completes execution it will either resolve or reject the with the result or error.

You may treat a `DexFiber` like any other `DexFuture` which makes it simple to integrate fibers into other processing chains.

`DexFiber` are provided their own stack seperate from a threads main stack, They are automatically scheduled as necessary.

Use `dex_await()` and similar functions to await the result of another future within the fiber and the fiber will be suspended allowing another fiber to run and/or the rest of the applications main loop.

Once a fiber is created, it is pinned to that scheduler. Use `dex_scheduler_spawn()` to create a fiber on a specific scheduler.

#### Hierarchy

#### Ancestors

- DexFuture
- DexObject

#### Instance methods

##### Methods inherited from DexFuture (24)

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.