folly/folly/fibers/Promise-inl.h

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/fibers/Baton.h>

namespace folly {
namespace fibers {

template <class T, class BatonT>
Promise<T, BatonT>::Promise(folly::Try<T>& value, BatonT& baton)
    :{}

template <class T, class BatonT>
Promise<T, BatonT>::Promise(Promise&& other) noexcept
    :{}

template <class T, class BatonT>
Promise<T, BatonT>& Promise<T, BatonT>::operator=(Promise&& other) {}

template <class T, class BatonT>
void Promise<T, BatonT>::throwIfFulfilled() const {}

template <class T, class BatonT>
Promise<T, BatonT>::~Promise() {}

template <class T, class BatonT>
void Promise<T, BatonT>::setException(folly::exception_wrapper e) {}

template <class T, class BatonT>
void Promise<T, BatonT>::setTry(folly::Try<T>&& t) {}

template <class T, class BatonT>
template <class M>
void Promise<T, BatonT>::setValue(M&& v) {}

template <class T, class BatonT>
void Promise<T, BatonT>::setValue() {}

template <class T, class BatonT>
template <class F>
void Promise<T, BatonT>::setWith(F&& func) {}

template <class T, class BatonT>
template <class F>
typename Promise<T, BatonT>::value_type Promise<T, BatonT>::await_async(
    F&& func) {}
} // namespace fibers
} // namespace folly