#pragma once
#include <atomic>
#include <thread>
#include <utility>
#include <folly/executors/InlineExecutor.h>
#include <folly/futures/detail/Core.h>
namespace folly {
namespace futures {
namespace detail {
template <typename T>
void coreDetachPromiseMaybeWithResult(Core<T>& core) { … }
template <typename T>
void setTry(Promise<T>& p, Executor::KeepAlive<>&& ka, Try<T>&& t) { … }
}
}
template <class T>
Promise<T> Promise<T>::makeEmpty() noexcept { … }
template <class T>
Promise<T>::Promise() : … { … }
template <class T>
Promise<T>::Promise(Promise<T>&& other) noexcept
: … { … }
template <class T>
Promise<T>& Promise<T>::operator=(Promise<T>&& other) noexcept { … }
template <class T>
void Promise<T>::throwIfFulfilled() const { … }
template <class T>
Promise<T>::Promise(futures::detail::EmptyConstruct) noexcept
: … { … }
template <class T>
Promise<T>::~Promise() { … }
template <class T>
void Promise<T>::detach() { … }
template <class T>
SemiFuture<T> Promise<T>::getSemiFuture() { … }
template <class T>
Future<T> Promise<T>::getFuture() { … }
template <class T>
template <class E>
typename std::enable_if<
std::is_base_of<std::exception, typename std::decay<E>::type>::value>::type
Promise<T>::setException(E&& e) { … }
template <class T>
void Promise<T>::setException(exception_wrapper ew) { … }
template <class T>
template <typename F>
void Promise<T>::setInterruptHandler(F&& fn) { … }
template <class T>
void Promise<T>::setTry(Try<T>&& t) { … }
template <class T>
void Promise<T>::setTry(Executor::KeepAlive<>&& ka, Try<T>&& t) { … }
template <class T>
template <class M>
void Promise<T>::setValue(M&& v) { … }
template <class T>
template <class F>
void Promise<T>::setWith(F&& func) { … }
template <class T>
bool Promise<T>::isFulfilled() const noexcept { … }
#if FOLLY_USE_EXTERN_FUTURE_UNIT
extern template class Promise<Unit>;
#endif
}