MessageFiber.resume

Resumes the fiber coroutine and waits until it is suspended or terminates.

class MessageFiber
resume
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

token Token

token expected to have been passed to suspend()

identifier Object

reference to the object causing the resume, use null to not pass anything. Must be the same reference that was used in the suspend call, or else a ResumeException will be thrown inside the fiber.

msg Message

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

Return Value

Type: Message

The message passed to the suspend() call which made this call resume.

Throws

if an Exception instance was passed to the suspend() call which made this call be resumed, that Exception instance.

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

Meta