Skip to content

Conversation

@arnetheduck
Copy link
Member

@arnetheduck arnetheduck commented Nov 30, 2025

Semantically, these two functions behave the same though race offers an additional overload for heterogenous futures (and had a less expressive return type - fixed here).

  • reduce memory allocations for varargs version
  • return full future type in race when possible

In the future, we may want to deprecate either one or race since they are redundant at this point.

Semantically, these two functions behave the same though race offers an
additional overload for heterogenous futures (and had a less expressive
return type - fixed here).

* fix `race` leak where callback would not be removed from unfinished
futures
* reduce memory allocations for varargs version
* return full future type in `race` when possible

In the future, we may want to deprecate either `one` or `race` since
they are redundant at this point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant