YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
set_deleter.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace yaclib::detail {
4
5struct NopeBase {};
6
8 template <typename Event>
9 static void Delete(Event&) noexcept {
10 }
11};
12
14 template <typename Event>
15 static void Delete(Event& event) noexcept {
16 event.Set();
17 }
18};
19
20} // namespace yaclib::detail
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25
static void Delete(Event &) noexcept
static void Delete(Event &event) noexcept