[ Version ( since = "1.2" ) ]
public Future spawn_coroutine (owned CoroutineFunc func)
Request this to spawn a [class@Dex.
Coroutine] and execute func with user data.
If the function returns null while suspended, it should have set an awaited future in its context using one of the `DEX_COROUTINE_SUSPEND_*` helpers.
| this |
a [class@Dex.Scheduler] |
| func |
coroutine entrypoint |
| user_data |
user data passed to the coroutine entrypoint |
| user_data_destroy |
destroy notify for |
|
a [class@Dex.Future] that will resolve or reject when |