Class DeferredCompletionSource

  • All Implemented Interfaces:

    
    public final class DeferredCompletionSource<TResult extends Object>
    
                        

    Allows safe orchestration of a Deferred's completion, preventing the consumer from prematurely completing the deferred.

    Essentially, it represents the producer side of a Deferred, providing access to the consumer side through the getDeferred method while isolating the Deferred's completion mechanisms from the consumer.