]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/common: use parameter pack for building future<>
authorKefu Chai <kchai@redhat.com>
Wed, 12 May 2021 14:38:15 +0000 (22:38 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 12 May 2021 14:40:05 +0000 (22:40 +0800)
commit6a1f3136178a3a02f8d2743643fb46950224140c
tree8e0358e431cb35c4382e532e04d3d35af05ac1a8
parent7c0a9f0307e8c1a491e1c96f7442a23df9570839
crimson/common: use parameter pack for building future<>

it mirrors the way how seastar::make_ready_future() works. and more
importantly, it allows us to build interruptible_future in the same
way as we build plain seastar::future<> in-place. so we can, for
instance, create a future<tuepl<int,int>> using:

make_ready_future<tuple<int,int>>(1, 2)

instead of using

make_ready_future<tuple<int,int>>(make_tuple(1, 2))

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/interruptible_future.h