-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no hard dependency on nest_asyncio, use only when needed.
Only when we have a current event loop do we need nest_asyncio to be used and installed. In case where readinto is called from a thread (this is something we do in solara) which does not have an event loop yet, we should not need nest_asyncio. When needed, and not installed, we raise an error with an informative installation instruction.
- Loading branch information
1 parent
778deaa
commit 4c02fd5
Showing
1 changed file
with
25 additions
and
8 deletions.
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