vibe.d beta banner
get vibe.d
0.7.30

Function runEventLoop

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

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.

Prototype

int runEventLoop();

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-2016 RejectedSoftware e.K.

License

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