5#include <vitrio/concurrency/completion.hpp>
6#include <vitrio/concurrency/completion_notifier.hpp>
7#include <vitrio/export.hpp>
8#include <vitrio/platform.hpp>
39 ,
public completion_notifier
63 void notify_done(std::exception_ptr error =
nullptr)
override;
65 void wait()
const override;
69 void get() const override;
73 VITRIO_STD_MEMBER_INTERFACE
74 std::unique_ptr<implementation> m_implementation;
void get() const override
Wait, then rethrow the first exception recorded, if any.
void notify_done(std::exception_ptr error=nullptr) override
Report that one unit of work has finished.
void wait() const override
Block the calling thread until this is ready.
bool is_ready() const noexcept override
Whether the work behind this has finished.
counting_completion(std::size_t count)
Construct a completion for a known number of units of work.