Pular para o conteúdo
Português (BR)

typedActor

Este conteúdo não está disponível em sua língua ainda.

typedActor<T>(behavior): ActorFactory<T>

Defined in: src/typed/spawn.ts:15

Wrap a Behavior<T> in an actor factory, so it can be passed to any spawn API that takes one — ClusterSharding.start, ClusterSingleton.start, Router.roundRobin, system.spawn.

For the common case of spawning a top-level or child typed actor, prefer system.spawnTyped(behavior, name) / system.spawnTypedAnonymous(behavior) (or the same pair on ActorContext) — they call this helper internally.

T

Behavior<T>

ActorFactory<T>