mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +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,
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user