ActorSimulation.Actor (GenServerVirtualTime v0.6.0)

Copy Markdown View Source

A simulated actor that can send and receive messages.

Summary

Functions

Returns a specification to start this module under a supervisor.

Sends a message to this process after a delay in milliseconds. Uses the appropriate backend based on the current process configuration.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_stats(actor)

send_after_self(message, delay_ms)

Sends a message to this process after a delay in milliseconds. Uses the appropriate backend based on the current process configuration.

start_link(definition, clock, opts \\ [])

start_sending(actor, actors_map)