Subject: | Feature request: method to check if loop is running |
It would be very helpful for using IO::Async::Loop as an event reactor for other event loops if it provided a way to determine whether it was currently in a reactor tick (i.e. currently running). For example Mojo::IOLoop provides this as is_running via the underlying reactors, so Mojo::Reactor::IOAsync currently cannot tell if the loop is running unless it started it itself. This is also useful when making code conditional on whether it's run in an event loop context or outside one, and thus needs to manage the loop itself.