Add an alias for type erased work objects

This commit is contained in:
Denis Blank 2018-03-13 13:06:42 +01:00
parent 084937e192
commit 41c7cb008a

View File

@ -61,6 +61,9 @@ using unique_trait_of = continuable_trait<
unique_function_adjustable,
Args...
>;
/// A type erasure for work objects
using work = fu2::unique_function<void()>;
} // namespace detail
/// Defines a non-copyable continuation type which uses the
@ -81,6 +84,12 @@ using promise = typename detail::unique_trait_of<
Args...
>::promise;
/// Defines a non-copyable type erasure which is capable of carrying
/// callable objects passed to executors.
///
/// \since 3.1.0
using work = detail::work;
// TODO channel
// TODO sink