TPromise.succeed

Sets the result of the operation, marks it as done, and notifies any waiters.

If the operation has been cancelled before, nothing happens.

  1. void succeed(ResultType result)
    class TPromise(ResultType)
    static if(!is(ResultType == void))
    void
    succeed
    (
    ResultType result
    )
  2. void succeed()

Throws

TFutureException if the operation is already completed.

Meta