View Source Actors.Actor.Pool (spawn v2.0.0-RC11)

This module provides functions for creating actor host pools for pooled actors.

Summary

Functions

Creates an actor host pool for a given pooled actor.

Functions

create_actor_host_pool(actor, opts)

@spec create_actor_host_pool(
  Spawn.Actors.Actor.t(),
  keyword()
) :: [Actors.Registry.HostActor.t()]

Creates an actor host pool for a given pooled actor.

Parameters

  • actor: The actor for which the host pool should be created.
  • opts: Additional options for the host pool.

Returns

Returns a list of HostActor structs representing the hosts in the pool.