8000 Improved py:all-done event by WebReflection · Pull Request #1778 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Improved py:all-done event #1778

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

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Improved py:all-done event #1778

merged 1 commit into from
Oct 2, 2023

Conversation

WebReflection
Copy link
Contributor

Description

This MR fixes an issue with py:all-done event by using events instead of hooks as hooks require awkward main thread orchestrations while events are always grant to land in there thanks to latest polyscript update.

Changes

Checklist

  • All tests pass locally
  • I have updated docs/changelog.md
  • I have created documentation for this(if applicable)

Copy link
Member
@ntoll ntoll left a comment

Choose a reason for hiding this comment

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

🚢

@WebReflection WebReflection merged commit 50f7ab0 into pyscript:main Oct 2, 2023
from pyscript import display
display('hello 3')
</script>
</body>
Copy link
Contributor

Choose a reason for hiding this comment

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

this should become a proper integration test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could do a follow up but the feature is from polyscript so eventually tests should be done there, imho.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually, never mind, these probably should be done in both places because custom types events are not polyscript matter anymore ... that being said, we currently have time working in either sync or async scripts/elements ... not sure how to test this best as async and time don't really use async feature there. If you'd like to add a better test, please go ahead, thank you!

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.

3 participants
0