Skip to content

Commit 93e6689

Browse files
committed
Reset ImmediateExecutor to original state.
1 parent efa3d36 commit 93e6689

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
require_relative 'executor'
2-
31
module Concurrent
42
class ImmediateExecutor
5-
include Executor
63

74
def post(*args, &task)
85
raise ArgumentError.new('no block given') unless block_given?
96
task.call(*args)
107
return true
118
end
9+
10+
def <<(task)
11+
post(&task)
12+
self
13+
end
1214
end
1315
end

0 commit comments

Comments
 (0)