Mesh.Actors.ActorSupervisor (Mesh v0.1.4)

View Source

DynamicSupervisor for user-defined actors.

Multiple instances run under PartitionSupervisor (one per scheduler) to reduce contention during concurrent actor creation.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts an actor under the partitioned supervisor. Routes to appropriate partition based on actor_id hash.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_child(actor_module, actor_id, capability, init_arg)

Starts an actor under the partitioned supervisor. Routes to appropriate partition based on actor_id hash.

start_link(init_arg)