omni::application::startup_handler

SYNOPSIS

The startup_handler namespace facilitates functions that allow invoking a delegate before the main application thread blocks.

top

DESCRIPTION

If an omni::application::run function is called and a startup handler is attached, the handlers are invoked in the order they are attached during the omni::application::run invocation. The startup handlers are called immediately before any user supplied thread functions and before the underlying base application loop runs. The run context is blocked and will not continue until the startup handlers have been invoked and return.

top

ERRORS

If an exception occurs on an attached delegate, it will be handled according to omni::sync::user_thread_exception and omni::sync::unhandled_thread_exception.

top

CONSIDERATIONS

This function will only have an effect if you have explicitly called one of the omni::application::run functions to block the main thread until program completion.

top