Repository navigation
feat: Run reactive effects #2508
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
Open
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a10db83
test: Add concurrency tests for cross-session and busy-session behavior
schloerke 3c889f5
feat: Run reactive effects concurrently, R Shiny-style
schloerke 332edff
test(chat): Don't assert message order in chat stream test
schloerke 98b8a8c
test: Add two-tab e2e test for cross-session concurrency
schloerke feeeee2
docs: Move flush reentrancy note to a code comment; drop R references
schloerke 3b9bd39
test(chat): Restore message order check in chat stream test
schloerke 00f74e0
fix(reactive): Share in-flight async calc runs and serialize effect runs
schloerke 156c5bf
fix(reactive): Make reactive.flush() wait reliably without hanging
schloerke 7869400
fix(session): Flush only sessions that request it, each on its own
schloerke dd72820
docs: Update extended-task skill and otel example for concurrent effects
schloerke d7b444a
test: Add regression tests from the PR review's repros
schloerke 2f33e40
Merge remote-tracking branch 'origin/main' into schloerke/async-pr-21…
schloerke 7b16aa0
docs: Add changelog entry for concurrent reactive effects
schloerke dc42c0c
fix(reactive): Don't wait in reactive.flush() under a running flush o…
schloerke 5bd513c
fix(reactive): Cache only an async calc's latest, still-valid run
schloerke 0bf0ebe
test: Cover flushing through child tasks and stale async calc runs
schloerke f283caf
refactor: Drop two checks no behavior depends on
schloerke fd6b68e
test: Give every concurrency fix a test that fails without it
schloerke 33d1711
docs: Say when reactive.flush() returns without waiting
schloerke a00ce1a
feat(session): Send each session's outputs in a task of its own
schloerke f910a1f
feat(reactive): Accept flush requests from other threads
schloerke fc959b3
docs: Describe per-session output and thread-safe flush requests
schloerke 8e4587e
test: Cover per-session output tasks and flush requests from threads
schloerke 3430e1c
test: Catch Exception, not BaseException, in closed-loop test (flake8…
schloerke b02a18d
test: Cover reactive values set from a download handler (#1785)
schloerke f50c245
test: Cover values set and input handled while a download streams
jat255 0b89ab7
test: Fail any unit test that runs longer than 2 minutes
schloerke d0865c0
fix(reactive): Discard flush state left by an event loop that has sto…
schloerke 4c7eabc
test: Make the flushed-callback busy test deterministic
schloerke d481337
fix(reactive): Keep tasks from a stopped event loop alive
schloerke a9fe446
Merge remote-tracking branch 'origin/main' into schloerke/async-pr-21…
schloerke 7d27a41
test: Wait for the flush task in the dead-event-loop test
jat255 4be9d36
refactor(reactive): Name rounds, the reactive effect queue, and outpu…
jat255 4a70f30
Merge remote-tracking branch 'origin/main' into schloerke/async-pr-21…
schloerke 8721519
Merge branch 'schloerke/async-pr-2182-reimpl' into jat255/2508-flush-…
schloerke 38d74df
refactor(reactive): Name the round methods by what they start
jat255 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not mention R in public notes or comments. Only mention R in internal comments where we deviate from R shinys's implementation