lib/async/task.rb in async-1.24.2 vs lib/async/task.rb in async-1.25.0
- old
+ new
@@ -70,11 +70,11 @@
end
# Create a new task.
# @param reactor [Async::Reactor] the reactor this task will run within.
# @param parent [Async::Task] the parent task.
- def initialize(reactor, parent = Task.current?, logger: nil, &block)
- super(parent || reactor)
+ def initialize(reactor, parent = Task.current?, logger: nil, **options, &block)
+ super(parent || reactor, **options)
@reactor = reactor
@status = :initialized
@result = nil