EventLoop.createTask

Schedule the execution of a fiber object: wrap it in a future.

Third-party event loops can use their own subclass of Task for interoperability. In this case, the result type is a subclass of Task.

class EventLoop
final
createTask
(
Coroutine
Args...
)
(
Coroutine coroutine
,
Args args
)
if (
isDelegate!Coroutine
)

Return Value

Type: auto

a $(D_PSYMBOL Task) object.

See Also

$(D_PSYMBOL task()).

Meta