awaitCompletion

suspend fun <T> awaitCompletion(callback: suspend (ModalSubmitInteraction?) -> T): T

Wait for this modal to be completed and call the callback. Parameter will be null if timed out.