useActor
Callable
Type parameters
- TLogic: AnyActorLogic
Parameters
logic: TLogic
optionaloptions: ActorOptions<TLogic>
Returns { actorRef: ActorRefFrom<TLogic>; send: (event: EventFrom<TLogic>) => void; snapshot: Readable<SnapshotFrom<TLogic>> }
actorRef: ActorRefFrom<TLogic>
send: (event: EventFrom<TLogic>) => void
Parameters
event: EventFrom<TLogic>
Returns void
snapshot: Readable<SnapshotFrom<TLogic>>