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

Send busy/idle when an Effect is executing and output binding progress when an Output is recalculating #193

Merged
merged 5 commits into from
Jun 15, 2022

Conversation

cpsievert
Copy link
Collaborator

Closes #185
Closes #16

@cpsievert cpsievert requested a review from wch June 8, 2022 21:37
@cpsievert cpsievert force-pushed the output-progress branch 3 times, most recently from 89c5c4a to ac86826 Compare June 8, 2022 21:49
shiny/reactive/_reactives.py Outdated Show resolved Hide resolved
@cpsievert cpsievert force-pushed the output-progress branch 2 times, most recently from 9920f14 to 5ebea25 Compare June 13, 2022 21:26
shiny/reactive/_reactives.py Outdated Show resolved Hide resolved
shiny/session/_session.py Outdated Show resolved Hide resolved
Comment on lines 37 to 39
async def _send_message(self, message: Dict[str, object]) -> None:
pass

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Collaborator Author

@cpsievert cpsievert Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, without it defined, unit tests will fail (so it's either define it here or check that the method exists before calling it in Effect_)

It'll probably make more sense to revisit this "lack of a MockSession" problem in a future PR that I'm working on, so I wouldn't worry about it too much right now

tests/test_poll.py Outdated Show resolved Hide resolved
Co-authored-by: Winston Chang <winston@stdout.org>
@cpsievert cpsievert merged commit 84d5133 into main Jun 15, 2022
@cpsievert cpsievert deleted the output-progress branch June 15, 2022 22:14
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

Successfully merging this pull request may close these issues.

Recalculating outputs don't fade Server should send progress and busy messages to client
2 participants