std::shared_ptr< IContextBase > Ptr
Definition: quantum_icontext_base.h:35
virtual bool validAt(int num) const =0
Determines if the future object associated with the 'num'-th continuation context is still valid.
virtual bool valid() const =0
Determines if the future object associated with this context has a valid shared state with the corres...
virtual int setException(std::exception_ptr ex)=0
Set an exception in the promise associated with the current IThreadContext or ICoroContext.
This interface exposes shared functionality between IThreadContext and ICoroContext.
Definition: quantum_icontext_base.h:33
Definition: quantum_icontext_base.h:26
virtual ~IContextBase()=default
Virtual destructor.
Definition: quantum_icontext_base.h:25