Skip to content

Commit 986be3f

Browse files
committed
Merge pull request #514 from tak1n/patch-1
Fix Future + Executor example
2 parents da94dfe + c2a3325 commit 986be3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/thread_pools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pool = Concurrent::ThreadPoolExecutor.new(
155155
:fallback_policy => :caller_runs
156156
)
157157

158-
future = Future.new(:executor => pool).execute do
158+
future = Future.execute(:executor => pool) do
159159
#work
160160
end
161161
~~~

0 commit comments

Comments
 (0)