ActorGroup<M, A>.of constructor

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