Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordering for Futures and Objects #13

Open
bezirg opened this issue Mar 29, 2017 · 0 comments
Open

Ordering for Futures and Objects #13

bezirg opened this issue Mar 29, 2017 · 0 comments

Comments

@bezirg
Copy link
Member

bezirg commented Mar 29, 2017

For performance reasons, I do not provide Ord instances for Futures and Objects, e.g.:

{
 Fut<Unit> f1;
 Fut<Unit> f2;
 f1 == f2; // this is fine
 f1 < f2; // cannot compile
}

This means that futures and objects cannot be stored in fast Sets or being keys of fast Maps (elements are fine).

Could be potentially fixed by attaching to the future or object a thread-safe counter.

Equality for Futures&Objects is only provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant