Skip to content

Commit 189efbd

Browse files
Documentation.
1 parent e76c016 commit 189efbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/async/queue.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def push(item)
6060
raise ClosedError, "Cannot enqueue items to a closed queue!"
6161
end
6262

63+
# Compatibility with {::Queue#push}.
6364
def <<(item)
6465
self.push(item)
6566
end
@@ -76,6 +77,7 @@ def dequeue
7677
@delegate.pop
7778
end
7879

80+
# Compatibility with {::Queue#pop}.
7981
def pop(...)
8082
@delegate.pop(...)
8183
end

0 commit comments

Comments
 (0)