- addOneshotListenervoid addOneshotListener(Socket socket, TAsyncEventType eventType, Duration timeout, TSocketEventListener listener) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- addOneshotListenervoid addOneshotListener(Socket socket, TAsyncEventType eventType, TSocketEventListener listener) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- delayvoid delay(Duration duration, void delegate() work) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- executevoid execute(TAsyncTransport transport, Work work, TCancellation cancellation) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- stopbool stop(Duration waitFinishTimeout) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
A TAsyncManager implementation based on libevent.
The libevent loop for handling non-blocking sockets is run in a background thread, which is lazily spawned. The thread is not daemonized to avoid crashes on program shutdown, it is only stopped when the manager instance is destroyed. So, to ensure a clean program teardown, either make sure this instance gets destroyed (e.g. by using scope), or manually call stop() at the end.