Skip to content

Commit

Permalink
Allow forwarding options to Queue#async.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 12, 2024
1 parent bed3499 commit 713ecbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/async/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def dequeue
@items.shift
end

def async(parent: (@parent or Task.current), &block)
def async(parent: (@parent or Task.current), **options, &block)
while item = self.dequeue
parent.async(item, &block)
parent.async(item, **options, &block)
end
end

Expand Down

0 comments on commit 713ecbc

Please sign in to comment.