MessageFiber.Token

Token struct passed to suspend() and resume() methods in order to ensure that the fiber is resumed for the same reason as it was suspended. The token is constructed from a string, via the static opCall() method.

Usage example:

auto token = MessageFiber.Token("something_happened");

fiber.suspend(token);

// Later on, somewhere else
fiber.resume(token);
class MessageFiber
struct Token {}

Members

Static functions

opCall
Token opCall(istring s)

Constructs a token.

Meta