waitFor

fun waitFor(vararg completionEvents: GotoCompletionEvent)(source)

Defines the events that goto should wait for before considering the navigation complete and resuming.

By default, goto awaits the GotoCompletionEvent.Load event.

Calling this function without arguments disable all completion events and makes goto complete immediately after the navigate request completes (without waiting for anything).