File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ class Future < IVar
51
51
# @option opts [Boolean] :operation (false) when +true+ will execute the future on the global
52
52
# operation pool (for long-running operations), when +false+ will execute the future on the
53
53
# global task pool (for short-running tasks)
54
+ # @option opts [object] :executor when provided will run all operations on
55
+ # this executor rather than the global thread pool (overrides :operation)
54
56
# @option opts [String] :dup_on_deref (false) call +#dup+ before returning the data
55
57
# @option opts [String] :freeze_on_deref (false) call +#freeze+ before returning the data
56
58
# @option opts [String] :copy_on_deref (nil) call the given +Proc+ passing the internal value and
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module Concurrent
8
8
9
9
let! ( :value ) { 10 }
10
10
let ( :executor ) { PerThreadExecutor . new }
11
+
11
12
subject do
12
13
Future . new ( executor : executor ) {
13
14
value
You can’t perform that action at this time.
0 commit comments