Module: Plumbing::Actor

Included in:
Pipe
Defined in:
lib/plumbing/actor.rb,
lib/plumbing/actor/async.rb,
lib/plumbing/actor/rails.rb,
lib/plumbing/actor/inline.rb,
lib/plumbing/actor/kernel.rb,
lib/plumbing/actor/threaded.rb,
lib/plumbing/actor/transporter.rb

Defined Under Namespace

Modules: ClassMethods Classes: Async, Inline, Rails, Threaded, Transporter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



15
16
17
# File 'lib/plumbing/actor.rb', line 15

def self.included base
  base.extend ClassMethods
end

.timeoutObject



48
49
50
# File 'lib/plumbing/actor/async.rb', line 48

def self.timeout
  Plumbing.config.timeout
end

.transporterObject



78
79
80
# File 'lib/plumbing/actor/threaded.rb', line 78

def self.transporter
  @transporter ||= Plumbing::Actor::Transporter.new
end

Instance Method Details

#in_context?Boolean

Returns:

  • (Boolean)


11
# File 'lib/plumbing/actor.rb', line 11

def in_context? = proxy.in_context?

#safelyObject



6
7
8
9
# File 'lib/plumbing/actor.rb', line 6

def safely(&)
  proxy.safely(&)
  nil
end

#stopObject



13
# File 'lib/plumbing/actor.rb', line 13

def stop = proxy.stop