vibe.d beta banner
get vibe.d
0.10.1

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

Function runEventLoop

Starts the vibe.d event loop for the calling thread.

int runEventLoop() nothrow @safe;

Note that this function is usually called automatically by the vibe.d framework. However, if you provide your own main() function, you may need to call either this or runApplication manually.

The event loop will by default continue running during the whole life time of the application, but calling runEventLoop multiple times in sequence is allowed. Tasks will be started and handled only while the event loop is running.

Returns

The returned value is the suggested code to return to the operating system from the main function.

See Also

runApplication

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.