Reenter an asyncio or Trio event loop from synchronous code
copied from cf-staging / greenbackgreenback is a small library that allows you to call back into async code from a syntactically synchronous function, as long as the synchronous function was originally called from an async task (running in an asyncio or Trio event loop) that set up a greenback "portal".