ThreadMessage.opDispatch

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

What the parameters functionally do is contextual to each MessageType.

struct ThreadMessage
static
opDispatch
(
string memberstring
)
(
const string content = string.init
,
shared Sendable payload = null
,
const bool quiet = false
)

Parameters

memberstring

String name of a member of MessageType.

content string

Optional content string.

payload Sendable

Optional boxed Sendable payload.

quiet bool

Whether or not to pass a flag for the action to be done quietly.

Return Value

Type: auto

A ThreadMessage whose members have the passed values.