Skip to content

Commit 9d588f3

Browse files
committed
Add set_deref_options call to Promise constructor
Fixes unintitialised variable warnings, and matches delay.rb
1 parent 6af1316 commit 9d588f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/concurrent/promise.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def initialize(opts = {}, &block)
204204
@children = []
205205

206206
init_obligation
207+
set_deref_options(opts)
207208
end
208209

209210
# @return [Promise]

0 commit comments

Comments
 (0)