reload

fun reload()(source)

Reload application: stop the current instance first, then create a replacement.

If creation fails (for example, because the user code throws during module loading), the engine and file watcher keep running without an application. Another explicit reload call may retry; auto-reload retries only after another watched-file change.

Report a problem