The currently implementation of awaitRace($promises) essentially works like this:
awaitOne(Promise\any($promises))
The naming implies this might call the equivalent of this:
awaitOne(Promise\race($promises))
IMO both have valid use cases and might be worth implementing.
See also #5 for some background on the functional API.
At the very least, this needs some documentation. A better method name would also be appreciated.
The currently implementation of
awaitRace($promises)essentially works like this:The naming implies this might call the equivalent of this:
IMO both have valid use cases and might be worth implementing.
See also #5 for some background on the functional API.
At the very least, this needs some documentation. A better method name would also be appreciated.