result

open suspend fun result(): Output(source)

Retrieves the result of the operation if the current state is State.Finished. Throws an IllegalStateException if the operation is not in a finished state.

Return

The result of type Output when the operation is completed successfully.

Throws

if the operation's state is not State.Finished.