Class: Concur::SingleThreaded
Overview
todo: should maybe have these backends extend Executor and just override what’s necessary
Instance Method Summary
collapse
#initialize, #queue_size
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
|
#shutdown ⇒ Object
80
81
|
# File 'lib/executor.rb', line 80
def shutdown
end
|