complete

abstract fun complete(value: T): Boolean (source)

Completes this deferred value with a given value. The result is true if this deferred was completed as a result of this invocation and false otherwise (if it was already completed).

Repeated invocations of this function have no effect and always produce false.