|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Execute an operation chain asynchronously.
chain receives a FluentExecutor seeded with input and must return the terminal Datum. The entire sequence runs on a background thread. on_complete is invoked with the result on that same thread.
The future is owned by this matrix instance. drain_async() and the destructor guarantee all in-flight chains finish before the matrix is destroyed. No thread management is required by the caller.
| StartType | Input data type. |
| ChainFunc | Callable: (FluentExecutor<ComputeMatrix, StartType>) -> Datum<ResultType>. |
| CompleteFn | Callable: (Datum<R>) -> void, where R is deduced from ChainFunc. |
| input | Seed datum for the chain. |
| chain | Lambda describing the full operation sequence. |
| on_complete | Called with the final Datum on completion. |
Definition at line 401 of file ComputeMatrix.hpp.