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

What is the effect of calling then() on several shared_future instances? #101

Open
coryan opened this issue Nov 14, 2017 · 0 comments
Open

Comments

@coryan
Copy link

coryan commented Nov 14, 2017

Sorry if this is the wrong forum, but the specification seems to be silent on the topic and this is there the specification lives...

For a regular future one cannot really call then() multiple times because the first call invalidates the future (and effectively only one future can point to the shared state).
For shared_future multiple instances can point to the same shared state, and the application may call then() on any of them. There is no description on what the effect should be. Should all continuations be called? Only one be set?

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

No branches or pull requests

1 participant