module Concurrent::ErlangActor::EnvironmentConstants
These constants are useful where the body of an actor is defined. For convenience they are provided in this module for including. @example
include Concurrent::ErlangActor::EnvironmentConstants actor = Concurrent::ErlangActor.spawn(:on_thread) do receive on(Numeric) { |v| v.succ }, on(ANY) { terminate :bad_message }, on(TIMEOUT) { terminate :no_message }, timeout: 1 end
Constants
- ANY
-
A singleton which matches anything using === method
- TIMEOUT
-
Unique identifier of a timeout, singleton.