ActorGroup<M, A> constructor

ActorGroup<M, A>(
  1. Handler<M, A> handler, {
  2. int size = 6,
  3. 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);