Skip to content

Commit 34aaab0

Browse files
committed
Add sig/async.rbs.
1 parent 4273e08 commit 34aaab0

File tree

2 files changed

+1367
-2
lines changed

2 files changed

+1367
-2
lines changed

lib/async/waiter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Waiter
1111
# Create a waiter instance.
1212
#
1313
# @parameter parent [Interface(:async) | Nil] The parent task to use for asynchronous operations.
14-
# @parameter finished [Async::Condition] The condition to signal when a task completes.
14+
# @parameter finished [::Async::Condition] The condition to signal when a task completes.
1515
def initialize(parent: nil, finished: Async::Condition.new)
1616
warn("`Async::Waiter` is deprecated, use `Async::Barrier` instead.", uplevel: 1, category: :deprecated) if $VERBOSE
1717

@@ -34,7 +34,7 @@ def async(parent: (@parent or Task.current), **options, &block)
3434

3535
# Wait for the first `count` tasks to complete.
3636
# @parameter count [Integer | Nil] The number of tasks to wait for.
37-
# @returns [Array(Async::Task)] If an integer is given, the tasks which have completed.
37+
# @returns [Array(::Async::Task)] If an integer is given, the tasks which have completed.
3838
# @returns [Async::Task] Otherwise, the first task to complete.
3939
def first(count = nil)
4040
minimum = count || 1

0 commit comments

Comments
 (0)