Not really. There is no generic way to know if the...
# arrow
e
Not really. There is no generic way to know if the current thread already has event loop unless you are programming in some kind of a framework that guarantees that any thread has an event loop. Why do you care about threads anyway?
g
Maybe just put event loop to ThreadLocal, so you can check is event loop there or not