blob: a86ae3e492930076b8b9b09b90f36abce8ecd0d6 [file] [log] [blame]
#pragma once
// The upstream code has some warnings under GCC, so turn them off
// as needed.
#pragma GCC diagnostic push
#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wnon-pod-varargs"
#else
#pragma GCC diagnostic ignored "-Wnon-template-friend"
#endif
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#include <sdbusplus/async/stdexec/async_scope.hpp>
#include <sdbusplus/async/stdexec/coroutine.hpp>
#include <sdbusplus/async/stdexec/execution.hpp>
#pragma GCC diagnostic pop
// Add std::execution as sdbusplus::async::execution so that we can simplify
// reference to any parts of it we use internally.
namespace sdbusplus::async
{
namespace execution = stdexec;
using async_scope = exec::async_scope;
} // namespace sdbusplus::async