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

allow awaiting disconnect without connected #1195

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Conversation

rodja
Copy link
Member

@rodja rodja commented Jul 19, 2023

This pull request allows to write

@ui.page('/')
async def page(client: Client):
    await client.disconnected()
    print('done', flush=True)

@rodja rodja added this to the 1.3.5 milestone Jul 19, 2023
@falkoschindler falkoschindler merged commit 8206fb2 into main Jul 19, 2023
6 checks passed
@falkoschindler falkoschindler deleted the await_disconnect branch July 19, 2023 05:35
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.

None yet

2 participants