oa::Task
oa::Task <T > — lightweight async result (future/promise). producer calls complete(value) or fail(status) exactly once. consumer calls wait() or tryGet() to retrieve the result. Supports then() for continuation chaining. usage: auto task = oa::makeShared <oa ::Task <oa ::Matrix>>(); pool.submitTask([task] { task->complete(computeSomething()); }); auto result = task->wait(); // blocks until complete
Public Methods
Public Method Documentation
No public source comment is attached to this declaration.
Parameters
inValueT—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inErroroa::Status—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Parameters
inFuncF—
Returns
oa::SharedPtr<Task<decltype(inFunc(oa::declval<T>()))>>The declared return value.
No public source comment is attached to this declaration.
Returns
oa::Optional<T>The declared return value.
No public source comment is attached to this declaration.
Returns
oa::Optional<T>The declared return value.
No public source comment is attached to this declaration.
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
voidThe declared return value.