Skip to content

Commit 713ecbc

Browse files
committed
Allow forwarding options to Queue#async.
1 parent bed3499 commit 713ecbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/async/queue.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def dequeue
4848
@items.shift
4949
end
5050

51-
def async(parent: (@parent or Task.current), &block)
51+
def async(parent: (@parent or Task.current), **options, &block)
5252
while item = self.dequeue
53-
parent.async(item, &block)
53+
parent.async(item, **options, &block)
5454
end
5555
end
5656

0 commit comments

Comments
 (0)