MessageFiber.start

Starts the fiber coroutine and waits until it is suspended or finishes.

class MessageFiber
start
out (_msg_out) { auto msg_out = cast(Unqual!(typeof(_msg_out)))_msg_out; auto a = msg_out.active; assert (a); assert (a != a.exc); }

Parameters

msg Message

message to be returned by the next suspend() call.

Return Value

Type: Message

When the fiber is suspended, the message passed to that suspend() call. It has always an active member, by default num but never exc.

Throws

Exception if the fiber is suspended by suspendThrow().

In: The fiber must not be running (but waiting or finished).

Meta