ActorGroup<M, A> constructor
ActorGroup<M, A> (
- Handler<
M, A> handler, { - int size = 6,
- GroupStrategy<
M, A> ? strategy,
Creates an ActorGroup with the given size
that handles messages
using the given Handler.
A GroupStrategy may be provided, defaulting to RoundRobin.
Use the of constructor to wrap a function directly.
Implementation
ActorGroup(Handler<M, A> handler,
{int size = 6, GroupStrategy<M, A>? strategy})
: this.create(() => handler, size: size, strategy: strategy);