-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/asyn: Ensure we always have a task with a greenback portals
Ensure that we have a thread with an event loop that has a greenback portal installed. Having that separate thread avoids having to manipulate the current thread event loop, which would be brittle as a user could change the event loop after we have setup ours. It also would not work in environments where the import is executing inside a aysncio Task, which is the case in Jupyter lab.
- Loading branch information
1 parent
6d5be35
commit 4b053b4
Showing
1 changed file
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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