[ CCode ( instance_pos = 0.9 ) ]
public delegate Future? FiberFunc ()
This function prototype is used for spawning fibers.
A fiber is a lightweight, cooperative-multitasking feature where the fiber is given its own stack. The fiber runs until it reaches a point of suspension (using [method@Dex.Future.await] or similar) or exits the fiber.
When suspended, the fiber is placed onto a queue until it is runnable again. Once runnable, the fiber is scheduled to run from within whatever scheduler it was created with.
See [method@Dex.Scheduler.spawn]
|
a [class@Dex.Future] or null |