.bundle/ruby/2.0.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb
# Run a method inside a task unless it's exclusive
Run a method inside a task unless it's exclusive
Run a method inside a task unless it ' s exclusive
def task(task_type, meta = nil)
      method_name = meta && meta.fetch(:method_name, nil)
      @task_class.new(task_type, meta) {
        if @exclusives && (@exclusives == :all || (method_name && @exclusives.include?(method_name.to_sym)))
          Celluloid.exclusive { yield }
        else
          yield
        end
      }.resume
    end
def task ( task_type , meta = nil ) method_name = meta && meta . fetch ( :method_name , nil ) @task_class . new ( task_type , meta ) { if @exclusives && ( @exclusives == :all || ( method_name && @exclusives . include? ( method_name . to_sym ) ) ) Celluloid . exclusive { yield } else yield end } . resume end
Run a method inside a task unless it's exclusive
Run a method inside a task unless it ' s exclusive
task_type
meta