Since nodes instantiated via this modules are Vibe.d server,
they expect the ability to run an asynchronous task ,
usually provided by vibe.core.core : runTask.
In order for them to properly work, we need to integrate them to our event
loop by providing the ability to spawn a task, and wait on some condition,
optionally with a timeout.
The following functions do that.
Note that those facilities are not available from the main thread,
while is supposed to do tests and doesn't have a scheduler.
Provide eventloop-like functionalities
Since nodes instantiated via this modules are Vibe.d server, they expect the ability to run an asynchronous task , usually provided by vibe.core.core : runTask.
In order for them to properly work, we need to integrate them to our event loop by providing the ability to spawn a task, and wait on some condition, optionally with a timeout.
The following functions do that. Note that those facilities are not available from the main thread, while is supposed to do tests and doesn't have a scheduler.