add new sugar syntax for nf7::Future::Chain
This commit is contained in:
parent
ca5dfb5933
commit
9a637586e2
@ -325,6 +325,9 @@ class Future final {
|
||||
ThisFuture& Chain(auto& pro, auto&& func) noexcept {
|
||||
return Chain(nullptr, pro, std::move(func));
|
||||
}
|
||||
ThisFuture& Chain(auto& pro) noexcept {
|
||||
return Chain(pro, [](auto& v) { return v; });
|
||||
}
|
||||
|
||||
const auto& value() const {
|
||||
if (imm_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user