You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
awaitAny silently drops the failure of a losing task #423
awaitAny($fast, $slow) returns the first task to finish. Every input task is marked as claimed, so when a losing task later fails, nothing reports it: the exception is dropped. This contradicts the structured-concurrency rule the rest of Async\ follows ("a failure nobody claimed is escalated to the owning scope, never dropped").
Output today: fast, end (the RuntimeException vanishes). Compiled with main + the site branch compiler on macOS arm64.
Decision needed: should awaitAny cancel the losers (like select/Go's errgroup), keep them running but escalate their failures to the scope, or swallow them by design? The current docblock says the outcomes are "not reported". Found while writing the API reference (reference/Async/fn.awaitAny.html).
Activity