ThreadMessage

Collection of static functions used to construct thread messages, for passing information of different kinds yet still as one type, to stop std.concurrency.send from requiring so much compilation memory.

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

Members

Enums

Type
enum Type

Different thread message types.

Static functions

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

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

Variables

content
string content;

String content body of message, where applicable.

payload
Sendable payload;

Bundled shared Sendable payload, where applicable.

quiet
bool quiet;

Whether or not the action requested should be done quietly.

type
Type type;

The Type of this thread message.

Meta