@Synchronized fun complete(value: T): Unit
This completes the result with the specified value. IllegalStateException is thrown if the result is already complete.
value - The value used to complete the result.
value
IllegalStateException -
IllegalStateException