nim-chronos icon indicating copy to clipboard operation
nim-chronos copied to clipboard

Add 'firstCompleted' and 'firstCompetedFuture' to 'asyncfutures2'

Open zah opened this issue 1 year ago • 8 comments

These are useful alternatives to the race helper that make it easy to implement "first successful response" strategies.

Currently, the Nimbus VC is trying to implement such a strategy, but it has the issue that if some of the servers responds too quickly with an error, the successful responses that might complete later will be ignored.

zah avatar Dec 16 '22 12:12 zah