Перейти к содержимому
Русский

SingletonActorClass

Это содержимое пока не доступно на вашем языке.

Defined in: src/cluster/singleton/SingletonKey.ts:84

…and constructs with no arguments, so passing the class alone is enough.

A class with a dependency-injecting constructor satisfies SingletonKeyedClass but not this — which is exactly what routes it to the start(TheClass, factory) overload instead of producing an error.

TCommand

new SingletonActorClass(): Actor<TCommand>

Defined in: src/cluster/singleton/SingletonKey.ts:85

Actor<TCommand>

SingletonKeyedClass<TCommand>.constructor

readonly singleton: SingletonKey<TCommand>

Defined in: src/cluster/singleton/SingletonKey.ts:74

SingletonKeyedClass.singleton