Skip to content

Commit 4bdd77f

Browse files
committed
Switched default executors in Agent to match Clojure.
1 parent b55f22f commit 4bdd77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/concurrent/agent.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def validate(&block)
113113
# @yieldreturn [Object] the new value
114114
# @return [true, nil] nil when no block is given
115115
def post(&block)
116-
post_on(@io_executor, &block)
116+
post_on(@fast_executor, &block)
117117
end
118118

119119
# Update the current value with the result of the given block fast,
@@ -132,7 +132,7 @@ def post_off(timeout = nil, &block)
132132
else
133133
block
134134
end
135-
post_on(@fast_executor, &block)
135+
post_on(@io_executor, &block)
136136
end
137137

138138
# Update the current value with the result of the given block fast,

0 commit comments

Comments
 (0)