mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 09:16:46 +08:00
Add an alias for type erased work objects
This commit is contained in:
parent
084937e192
commit
41c7cb008a
@ -61,6 +61,9 @@ using unique_trait_of = continuable_trait<
|
|||||||
unique_function_adjustable,
|
unique_function_adjustable,
|
||||||
Args...
|
Args...
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
/// A type erasure for work objects
|
||||||
|
using work = fu2::unique_function<void()>;
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
/// Defines a non-copyable continuation type which uses the
|
/// Defines a non-copyable continuation type which uses the
|
||||||
@ -81,6 +84,12 @@ using promise = typename detail::unique_trait_of<
|
|||||||
Args...
|
Args...
|
||||||
>::promise;
|
>::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 channel
|
||||||
// TODO sink
|
// TODO sink
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user