EventLoop.callSoon

Arrange for a callback to be called as soon as possible.

This operates as a FIFO queue, callbacks are called in the order in which they are registered. Each callback will be called exactly once.

Any positional arguments after the callback will be passed to the callback when it is called.

class EventLoop
final
callSoon
(
Dg
Args...
)
(
Dg dg
,
Args args
)

Return Value

Type: auto

an instance of $(D_PSYMBOL Callback).

Meta