mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
crimson/common: more friendly to seastar::do_with()
so we don't need to do the box-unbox dance when callng seastar::do_with() with multiple with'ed variables and a continuation which returns `errator<...>::future`. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
ccb8d61ff3
commit
470d2e28fc
@ -614,6 +614,8 @@ private:
|
||||
// let seastar::do_with to up-cast us to seastar::future.
|
||||
template<typename T, typename F>
|
||||
friend inline auto ::seastar::do_with(T&&, F&&);
|
||||
template<typename T1, typename T2, typename T3_or_F, typename... More>
|
||||
friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more);
|
||||
};
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user