select: Make promise cancellable.
This commit is contained in:
parent
03ebfaf7ab
commit
67012b6f4b
3 changed files with 36 additions and 23 deletions
|
@ -85,6 +85,9 @@ Returns a version of the channel that provides only write methods.
|
|||
returns the channel of the first one that succeeds. Only the winning method is
|
||||
executed to completion—the other methods have no effect.
|
||||
|
||||
All of the methods can be cancelled before completion by calling `cancel` on the
|
||||
promise returned from `select`.
|
||||
|
||||
#### Examples
|
||||
|
||||
Imagine you're at a party and your next conversation depends on whom you run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue