Asynchronous event loop library