5#include <vitrio/export.hpp>
17class VITRIO_API completion
20 completion() =
default;
21 completion(
const completion &other) =
default;
22 completion(completion &&other) =
default;
23 virtual ~completion() =
default;
25 completion& operator=(
const completion &other) =
default;
26 completion& operator=(completion &&other) =
default;
31 virtual void wait()
const = 0;
46 virtual
void get() const = 0;
virtual void wait() const =0
Block the calling thread until this is ready.
virtual void get() const =0
Wait, then rethrow the first exception recorded, if any.
virtual bool is_ready() const noexcept=0
Whether the work behind this has finished.