vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function exitEventLoop

Stops the currently running event loop.

void exitEventLoop (
  bool shutdown_all_threads = false
) nothrow @safe;

Calling this function will cause the event loop to stop event processing and the corresponding call to runEventLoop() will return to its caller.

Parameters

NameDescription
shutdown_all_threads If true, exits event loops of all threads - false by default. Note that the event loops of all threads are automatically stopped when the main thread exits, so usually there is no need to set shutdown_all_threads to true.
Authors

Sönke Ludwig

Copyright

© 2012-2019 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.