]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/interruptible_future: introduce future<> helper to interruptor
authorSamuel Just <sjust@redhat.com>
Thu, 3 Jun 2021 21:50:22 +0000 (14:50 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 23 Jun 2021 18:23:35 +0000 (18:23 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/interruptible_future.h

index 6ebabf1b4b2ac79f953c9dbc4a0943006716fa96..f4e5a85570e3dbea3d7ac5c7ec7f4e555714f13f 100644 (file)
@@ -893,6 +893,9 @@ template <typename InterruptCond>
 struct interruptor
 {
 public:
+  template <typename T>
+  using future = interruptible_future<InterruptCond, T>;
+
   template <typename FutureType>
   [[gnu::always_inline]]
   static interruptible_future_detail<InterruptCond, FutureType>