class Concurrent::Agent

def send(*args, &action)

Returns:
  • (Boolean) - true if the action is successfully enqueued, false if

Other tags:
    Yieldreturn: - the new value of the Agent

Other tags:
    Yieldparam: args - zero or more arguments to pass to the
    Yieldparam: value - the current {#value} of the Agent

Other tags:
    Yield: - process the old value and return the new

Parameters:
  • action (Proc) -- the action dispatch to be enqueued
  • args (Array) -- zero or more arguments to be passed to
    def send(*args, &action)
      enqueue_action_job(action, args, Concurrent.global_fast_executor)
    end