await

suspend fun await(): ModalEvent(source)

Suspends until the modal is submitted, and returns the event.

Throws

TimeoutCancellationException

If the timeout set in the modal builder has been reached