Function FiberGroup.close
close the group (killing all fibers).
void close
(
bool waitForExit = true
) @nogc @safe;
It is legal for the calling thread to be part of the group. If waitForExit
is true, it will be killed only once
the function is done waiting for the other fibers to exit.
Parameters
Name | Description |
---|---|
waitForExit | Whether the function waits for all fibers to exit before returning. |
Notes
If waitForExit is false, the group cannot be reused before all fibers have actually exited.