suspendAwait
Suspend until the future completion. Resumes with the same exception if the future completes exceptionally
suspend fun <T> Future<T>.suspendAwait(exception: (Throwable, Continuation<T>) -> Unit): T
Content copied to clipboard
Suspend until the future completion handling exception from the future using exception function