ExActor.Tolerant

Predefine that provides tolerant default implementation for gen_server required functions. Default implementation will cause the gen_server to ignore messages (e.g. calls/casts).

All ExActor macros are imported.

Example:

defmodule MyServer do
  use ExActor.Tolerant
  ...
end

# Locally registered name:
use ExActor.Tolerant, export: :some_registered_name

# Globally registered name:
use ExActor.Tolerant, export: {:global, :global_registered_name}
Source