Conversation
Owner
Author
|
The framework now automatically cancels any running actions that match the same client and HyperView id. These can't occur unless So for |
finally came up with a good Push example, added to concurrency page
f3b1704 to
63d4b7d
Compare
Owner
Author
|
There are still a few strange edge-cases to the concurrency stuff, but it doesn't need to hold up this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both sockets and http have always used a request-response cycle to process actions. While an action is processing the HyperView locks and waits for a response (slightly configurable now, see #174).
UPDATE: You now CAN cancel long-running actions, making this much more useful
This PR adds
PushUpdateto theHyperboleeffect, which allows you to stream incremental view updates over the socket while a long-running action is processing. This is intuitively a good thing, but there are major limitations:There's no way to cancel a long-running action. You're stuck until an action completes or you unload it.PushUpdatein a page load. This might be confusing.Questions:
Example: see the bottom of the Concurrency page in this branch
TODO:
pushUpdateToisn't correctly setting the ViewId. Needs testing / example.