MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ take_errors()

template<typename T = void>
std::vector< std::exception_ptr > MayaFlux::Parallel::AsyncGroup< T >::take_errors ( )
inline

Returns and clears exceptions accumulated with no handler set.

Only meaningful when the group was constructed without an ExceptionHandler. With a handler, exceptions are reported at the point they're observed and never accumulate here.

Definition at line 132 of file AsyncGroup.hpp.

133 {
134 std::vector<std::exception_ptr> errors;
135 m_errors.drain([&errors](std::exception_ptr& ep) {
136 errors.push_back(std::move(ep));
137 });
138 return errors;
139 }
void drain(Finish finish)
Blocking pass that finalizes every item currently held.
Memory::SweepList< std::exception_ptr > m_errors

References MayaFlux::Memory::SweepList< T >::drain(), and MayaFlux::Parallel::AsyncGroup< T >::m_errors.

+ Here is the call graph for this function: