Skip to content

Commit

Permalink
Consistent interface for Queue#signal(value = nil).
Browse files Browse the repository at this point in the history
Fixes #341.
  • Loading branch information
ioquatix committed Oct 29, 2024
1 parent 2e2f9a8 commit 451a6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def each
end

# Signal the queue with a value, the same as {#enqueue}.
def signal(value)
def signal(value = nil)
self.enqueue(value)
end

Expand Down

0 comments on commit 451a6a3

Please sign in to comment.