Really fix the clang warning in Format-inl.h
[folly.git] / folly / wangle / Promise-inl.h
index efb8edfa08190967d361bbe3f66a62ecb0297f51..68d696411f184d37640a0024fabdfcc3a520564c 100644 (file)
@@ -88,6 +88,12 @@ void Promise<T>::setException(std::exception_ptr const& e) {
   core_->setResult(Try<T>(e));
 }
 
+template <class T>
+void Promise<T>::setInterruptHandler(
+  std::function<void(std::exception_ptr const&)> fn) {
+  core_->setInterruptHandler(std::move(fn));
+}
+
 template <class T>
 void Promise<T>::fulfilTry(Try<T>&& t) {
   throwIfFulfilled();