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

Yield until graph object update #366

Open
dphblox opened this issue Jul 15, 2024 · 0 comments
Open

Yield until graph object update #366

dphblox opened this issue Jul 15, 2024 · 0 comments
Labels
enhancement New feature or request not ready - evaluating Currently gauging feedback

Comments

@dphblox
Copy link

dphblox commented Jul 15, 2024

As part of the design of Eventuals (#4), Fusion is aiming to better support long-running imperative sequences embedded in a reactive system. As part of this, the process might wait for an object to change.

Right now, this would have to be implemented via polling:

scope:Eventual(function(use)
    repeat task.wait() until peek(state) == "foo"
end)

Ideally though, the change would be pushed to the imperative code:

scope:Eventual(function(use)
    repeat await(state) until peek(state) == "foo"
end)

Specific API surface TBD.

@dphblox dphblox added enhancement New feature or request not ready - evaluating Currently gauging feedback labels Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not ready - evaluating Currently gauging feedback
Projects
None yet
Development

No branches or pull requests

1 participant