Function runTask
Runs a new asynchronous task.
Task runTask(ARGS...)
(
@safe void delegate(ARGS) task,
auto ref ARGS args
);
Task runTask(ARGS...)
(
@system void delegate(ARGS) task,
auto ref ARGS args
) @system;
Task runTask(CALLABLE, ARGS...)
(
CALLABLE task,
auto ref ARGS args
)
if (!is(CALLABLE : void delegate(ARGS)) && is(typeof(CALLABLE .init(ARGS .init))));
Task runTask(ARGS...)
(
TaskSettings settings,
@safe void delegate(ARGS) task,
auto ref ARGS args
);
Task runTask(ARGS...)
(
TaskSettings settings,
@system void delegate(ARGS) task,
auto ref ARGS args
) @system;
Task runTask(CALLABLE, ARGS...)
(
TaskSettings settings,
CALLABLE task,
auto ref ARGS args
)
if (!is(CALLABLE : void delegate(ARGS)) && is(typeof(CALLABLE .init(ARGS .init))));
task will be called synchronously from within the vibeRunTask call. It will continue to run until vibeYield() or any of the I/O or wait functions is called.
Note that the maximum size of all args must not exceed maxTaskParameterSize
.