oremanj / greenback

Reenter an asyncio or Trio event loop from synchronous code
https://greenback.readthedocs.io/
Other
80 stars 2 forks source link

has_portal() should return False when run outside async context #12

Closed oremanj closed 2 years ago

oremanj commented 2 years ago

Currently it crashes with a sniffio.AsyncLibraryNotFound exception.