Function Future.runInFiber
Launch a new fiber that will run the specified callback, set the future when the callback returns
auto auto runInFiber(alias F)
(
Parameters!F args
);
auto auto runInFiber(alias F, Runner)
(
ref Runner runner,
Parameters!F args
);
auto auto runInFiber(T)
(
T delegate() dlg
);
auto auto runInFiber(T, Runner)
(
ref Runner runner,
T delegate() dlg
);
The first form runs F function with all arguments.
The second form does the same, but specified a different context to spawn the fiber in. The first argument can
be any object with a spawnFiber
function. The most obvious example is a FiberGroup
for the fiber to belong
to.
The third and fourth forms are for running a supplied delegate instead of an aliased function.