Package org.osgi.util.promise
Interface PromiseImpl.InlineCallback
-
- All Known Implementing Classes:
DeferredPromiseImpl.Chain,DeferredPromiseImpl.ChainImpl,DeferredPromiseImpl.Delay,DeferredPromiseImpl.FallbackChain,DeferredPromiseImpl.FallbackTo,DeferredPromiseImpl.ResolveWith,DeferredPromiseImpl.Timeout,PromiseFactory.All
- Enclosing class:
- PromiseImpl<T>
static interface PromiseImpl.InlineCallbackMarker interface for internal callbacks which do not call user code and should be run on the current thread for an already resolved promise. Such internal callbacks should be directly called to resolve a DeferredPromiseImpl so that itsDeferredPromiseImpl.orDone()method can convert it to a resolvedPromiseImpltype for efficiency.- Since:
- 1.2