getCompleted

Returns completed result or throws IllegalStateException if this deferred value has not completed yet. It throws the corresponding exception if this deferred was cancelled.

This function is designed to be used from invokeOnCompletion handlers, when there is an absolute certainty that the value is already complete. See also getCompletionExceptionOrNull.

Note: This is an experimental api. This function may be removed or renamed in the future.