#include <folly/detail/AsyncTrace.h>
#include <folly/fibers/Fiber.h>
#include <folly/fibers/FiberManagerInternal.h>
namespace folly {
namespace fibers {
class Baton::FiberWaiter : public Baton::Waiter { … };
inline Baton::Baton() noexcept : … { … }
template <typename F>
void Baton::wait(F&& mainContextFunc) { … }
template <typename F>
void Baton::waitFiber(FiberManager& fm, F&& mainContextFunc) { … }
template <typename Clock, typename Duration>
bool Baton::timedWaitThread(
const std::chrono::time_point<Clock, Duration>& deadline) { … }
template <typename Rep, typename Period, typename F>
bool Baton::try_wait_for(
const std::chrono::duration<Rep, Period>& timeout, F&& mainContextFunc) { … }
template <typename Clock, typename Duration, typename F>
bool Baton::try_wait_until(
const std::chrono::time_point<Clock, Duration>& deadline,
F&& mainContextFunc) { … }
}
}