ActorGroup<M, A>.of constructor
ActorGroup<M, A>.of (
- HandlerFunction<
M, A> handlerFunction, { - int size = 6,
- GroupStrategy<
M, A> ? strategy,
Creates an ActorGroup with the given size
, based on a handler function.
A GroupStrategy may be provided, defaulting to RoundRobin.
Implementation
ActorGroup.of(HandlerFunction<M, A> handlerFunction,
{int size = 6, GroupStrategy<M, A>? strategy})
: this.create(asHandler(handlerFunction), size: size, strategy: strategy);