getResult

open fun getResult(): T

Waits if necessary for the computation to complete, and then retrieves its result.

Throws

if the computation was cancelled

if the computation threw an exception

if the current thread was interrupted while waiting

if the wait timed out