You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Can the await function be called from anywhere? For example:
localeventual=Eventual(function(use)
-- some processing that yieldsend)
Computed(function(use)
localvalue=await(eventual)
-- is this allowed?end)
If the above is allowed, then Computed states would essentially hold the same behavior as Eventuals in the sense they can be "pending". Might it be worth implementing yield support for Computed states generally? A side effect of this would be both peek and use potentially yielding if a Computed state is still "pending".
If the above is not allowed, would it make sense to throw an error claiming you cannot yield in the current context?
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:
Ideally though, the change would be pushed to the imperative code:
Specific API surface TBD.
The text was updated successfully, but these errors were encountered: