Class: Concur::SingleThreaded

Inherits:
Executor::Base show all
Defined in:
lib/executor.rb

Overview

todo: should maybe have these backends extend Executor and just override what’s necessary

Instance Method Summary collapse

Methods inherited from Executor::Base

#initialize, #queue_size

Constructor Details

This class inherits a constructor from Concur::Executor::Base

Instance Method Details

#execute(f = nil, channel = nil, &blk) ⇒ Object



76
77
78
# File 'lib/executor.rb', line 76

def execute(f=nil, channel=nil, &blk)
  process(f, channel, &blk)
end

#process(f = nil, channel = nil, &blk) ⇒ Object



70
71
72
73
74
# File 'lib/executor.rb', line 70

def process(f=nil, channel=nil, &blk)
  f = StandardFuture.new(f, channel, &blk)
  f.call
  f
end

#shutdownObject



80
81
# File 'lib/executor.rb', line 80

def shutdown
end