Skip to content

Commit

Permalink
crimson/common/interruptible_future: add common errorator forwards
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Just <[email protected]>
  • Loading branch information
athanatos committed Jun 23, 2021
1 parent 7d49aaf commit 525bd15
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/crimson/common/interruptible_future.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,16 @@ struct interruptible_errorator {
using future = interruptible_future_detail<InterruptCond,
typename Errorator::template future<ValueT>>;

template <class... NewAllowedErrorsT>
using extend = interruptible_errorator<
InterruptCond,
typename Errorator::template extend<NewAllowedErrorsT...>>;

template <class Ertr>
using extend_ertr = interruptible_errorator<
InterruptCond,
typename Errorator::template extend_ertr<Ertr>>;

template <typename ValueT = void, typename... A>
static interruptible_future_detail<
InterruptCond,
Expand All @@ -513,6 +523,10 @@ struct interruptible_errorator {
InterruptCond, typename Errorator::template future<>>(
Errorator::now());
}

using pass_further = typename Errorator::pass_further;
using ready_future_marker = ready_future_marker;
using exception_future_marker = exception_future_marker;
};

template <typename InterruptCond,
Expand Down

0 comments on commit 525bd15

Please sign in to comment.