Nexus API Reference

DurableEffect
in package

Read onlyYes
FinalYes
Tags
psalm-api

Table of Contents

Properties

$replyMsg  : mixed
$replyTo  : ActorRef|null
$sideEffects  : array<string|int, mixed>
$state  : object|null
$type  : DurableEffectType

Methods

none()  : self
persist()  : self
reply()  : self
stash()  : self
stop()  : self
thenReply()  : self
thenRun()  : self
unhandled()  : self

Properties

$sideEffects

public array<string|int, mixed> $sideEffects = []

Methods

persist()

public static persist(object $newState) : self
Parameters
$newState : object
Return values
self

thenReply()

public thenReply(ActorRef $to, callable(object): object $fn) : self
Parameters
$to : ActorRef
$fn : callable(object): object

receives final state, returns reply message

Return values
self

thenRun()

public thenRun(callable(object): void $fn) : self
Parameters
$fn : callable(object): void

receives final state

Return values
self

unhandled()

public static unhandled() : self
Return values
self

        
On this page

Search results