Skip to content

Commit 52800dc

Browse files
committed
crimson/common: add interruptible_errorator::make_interruptible
Signed-off-by: Samuel Just <[email protected]>
1 parent 0afd9fa commit 52800dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/crimson/common/interruptible_future.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,12 @@ struct interruptible_errorator {
694694
Errorator::template make_ready_future<ValueT>(
695695
std::forward<A>(value)...));
696696
}
697+
698+
template <template <typename> typename FutureType, typename ValueT>
699+
static future<ValueT> make_interruptible(FutureType<ValueT> &&fut) {
700+
return std::move(fut);
701+
}
702+
697703
static interruptible_future_detail<
698704
InterruptCond,
699705
typename Errorator::template future<>> now() {

0 commit comments

Comments
 (0)