Skip to content

Commit 96dc050

Browse files
gfldexmoritz
authored andcommitted
be more precise about return types of sub await
1 parent 442a922 commit 96dc050

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/Type/Promise.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ or C<quit> with the C<cause> if the L<Promise> is Broken.
252252
253253
=head2 sub await
254254
255-
multi sub await(Promise:D)
256-
multi sub await(*@)
255+
multi sub await(Promise:D --> Promise)
256+
multi sub await(*@ --> Array)
257257
258258
Waits until one or more promises are I<all> fulfilled, and then returns their
259259
values. Also works on L<channels|/type/Channel>. Any broken promises will
260-
rethrow their exceptions.
260+
rethrow their exceptions. If a list of promises is provided a list of promises
261+
is returned.
261262
262263
=end pod

0 commit comments

Comments
 (0)