You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
monarch_env: use main_function for -allocator target (#32)
Summary:
Pull Request resolved: #32
This is the second try after D74718068 got backed out.
Turns out `bootstrap_main` from `_rust_bindings` needs a reference to a running event loop, so it can't simply be passed into `asyncio.run()`:
https://github.com/awestlake87/pyo3-asyncio#a-note-about-asynciorun
We wrap it into a trivial coroutine instead.
Reviewed By: amirafzali
Differential Revision: D75284480
fbshipit-source-id: 24352a212d0490d2f1fe4eb6245212c1abfc1bfa
0 commit comments