ThreadMessage

Collection of static functions used to construct thread messages, for passing information of different kinds yet still as one type, to be able to store them in arrays for later processing.

The type of the message is defined as a MessageType in ThreadMessage.MessageType. Recipients will have to do a (final) switch over that enum to deal with messages accordingly.

Members

Enums

MessageType
enum MessageType

Different thread message types.

Static functions

opDispatch
auto opDispatch(string content, Sendable payload, bool quiet)

An opDispatch, constructing one function for each member in MessageType.

Variables

content
string content;

String content body of message, where applicable.

exhausted
bool exhausted;

Whether or not this message has been processed.

payload
Sendable payload;

Bundled shared Sendable payload, where applicable.

quiet
bool quiet;

Whether or not the action requested should be done quietly.

type
MessageType type;

The MessageType of this thread message.