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

Splitting read and write capabilities #2

Open
abrgr opened this issue Oct 12, 2023 · 0 comments
Open

Splitting read and write capabilities #2

abrgr opened this issue Oct 12, 2023 · 0 comments

Comments

@abrgr
Copy link

abrgr commented Oct 12, 2023

Do you see value in separating the ability to access a promise's value from the ability to set its value? This would essentially be adding a capability-based model with independent read and write capabilities.

createPromise could return a promiseID and a resolutionToken. Mutations could then be keyed off of the resolution token and getPromise could be keyed off of the ID.

This certainly adds some complexity to clients but it removes any worry associated with passing around promise IDs - no rouge subsystem (implemented by another team, etc) could interfere with an ongoing operation it was only intended to be able to observe.

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