CompletableFuture.obtrudeValue

Forcibly sets or resets the value subsequently returned by method {@link #get()} and related methods, whether or not already completed. This method is designed for use only in error recovery actions, and even in such situations may result in ongoing dependent completions using established versus overwritten outcomes.

@param value the completion value

  1. void obtrudeValue()
  2. void obtrudeValue(T value)
    class CompletableFuture(T)
    static if(!(is(T == void)))
    void
    obtrudeValue
    ()

Meta