Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / coroutines/src/public-api / ActorBehavior

Interface: ActorBehavior()<S, Q, D, Incoming> ​

Defined in: projects/libraries/streamix/coroutines/src/lib/abstractions/actor.ts:205

Actor behavior signature for autonomous entity mode.

Receives a message, the current state, and worker utilities. Returns the new state (or a Promise resolving to it).

Type Parameters ​

S ​

S = any

Q ​

Q = any

D ​

D = any

Incoming ​

Incoming = any

ActorBehavior(msg, state, utils): S | Promise<S>

Defined in: projects/libraries/streamix/coroutines/src/lib/abstractions/actor.ts:206

Actor behavior signature for autonomous entity mode.

Receives a message, the current state, and worker utilities. Returns the new state (or a Promise resolving to it).

Parameters ​

msg ​

Incoming

state ​

S

utils ​

concurrency ​

WorkerConcurrency

outbox ​

WorkerOutbox<Q, D>

inbox ​

WorkerInbox<Incoming>

Returns ​

S | Promise<S>

Released under the GNU AGPL v3 or later.