Small helper function to get the current event loop for python
| 21 | |
| 22 | // Small helper function to get the current event loop for python |
| 23 | py::object get_loop() |
| 24 | { |
| 25 | auto mod = py::module_::import_("asyncio"); |
| 26 | auto getter = mod.attr("get_event_loop"); |
| 27 | return getter(); |
| 28 | } |
| 29 | |
| 30 | // An asio::any_io_executor compatible wrapper around the event loop. |
| 31 | // all the query functions are for that compatibility. |
no outgoing calls
no test coverage detected