ThreadMessage.opDispatch

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

What the parameters functionally do is contextual to each Type.

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 Type.

content string

Optional content string.

payload Sendable

Optional boxed Sendable payloda.

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.

Meta