Commit 1decadad authored by Xavier Thompson's avatar Xavier Thompson

Remove nested namespace typon::core

parent e284ba05
......@@ -8,7 +8,7 @@
#include <limits>
namespace typon::core
namespace typon
{
struct coroutine_node
......
......@@ -10,7 +10,7 @@
#include <typon/core/scheduler.hpp>
namespace typon::core
namespace typon
{
template <typename T = void>
......
......@@ -12,7 +12,7 @@
#include <typon/core/result.hpp>
namespace typon::core
namespace typon
{
template <typename Promise>
......
......@@ -8,7 +8,7 @@
#include <typon/core/result.hpp>
namespace typon::core
namespace typon
{
struct [[nodiscard]] Sync {};
......
......@@ -8,7 +8,7 @@
#include <utility>
namespace typon::core
namespace typon
{
template <typename T>
......
......@@ -11,7 +11,7 @@
#include <typon/core/scheduler.hpp>
namespace typon::core
namespace typon
{
struct [[nodiscard]] Root
......
......@@ -15,7 +15,7 @@
#include <typon/core/continuation.hpp>
namespace typon::core
namespace typon
{
struct Scheduler
......
......@@ -7,7 +7,7 @@
#include <typon/core/result.hpp>
namespace typon::core
namespace typon
{
template <typename T = void>
......
......@@ -13,26 +13,8 @@
namespace typon
{
template <typename T>
using Future = core::Future<T>;
template <typename T>
using Join = core::Join<T>;
using Root = core::Root;
using Sync = core::Sync;
template <typename T>
using Task = core::Task<T>;
template <typename Task>
core::Fork<typename Task::promise_type::value_type> fork(Task task)
Fork<typename Task::promise_type::value_type> fork(Task task)
{
co_return co_await std::move(task);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment