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.

@safe nothrow
int
runEventLoop
()

Return Value

Type: int

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

See Also

runApplication

Meta