mirror of
https://github.com/Naios/continuable.git
synced 2026-02-16 23:29:48 +08:00
Materialize the continuable before applying transforms
This commit is contained in:
parent
92d247f2d6
commit
5c3ae8223a
@ -321,7 +321,7 @@ public:
|
|||||||
/// \since version 2.0.0
|
/// \since version 2.0.0
|
||||||
template <typename T>
|
template <typename T>
|
||||||
auto apply(T&& transform) && {
|
auto apply(T&& transform) && {
|
||||||
return std::forward<T>(transform)(std::move(*this));
|
return std::forward<T>(transform)(std::move(*this).materialize());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The pipe operator | is an alias for the continuable::then method.
|
/// The pipe operator | is an alias for the continuable::then method.
|
||||||
|
|||||||
@ -72,7 +72,7 @@ using unique_continuable = typename detail::unique_trait_of<
|
|||||||
Args...
|
Args...
|
||||||
>::continuable;
|
>::continuable;
|
||||||
|
|
||||||
/// Defines a non-copyable promise type which using the
|
/// Defines a non-copyable promise type which is using the
|
||||||
/// function2 backend for type erasure.
|
/// function2 backend for type erasure.
|
||||||
///
|
///
|
||||||
/// Usable like: `promise<int, float>`
|
/// Usable like: `promise<int, float>`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user