WIP5: format
This commit is contained in:
parent
8d49d2d446
commit
08c23d6244
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
#include "skullc/coro/scheduler.hpp"
|
#include "skullc/coro/scheduler.hpp"
|
||||||
#include "skullc/coro/semaphore.hpp"
|
#include "skullc/coro/semaphore.hpp"
|
||||||
|
#include "skullc/coro/signal.hpp"
|
||||||
#include "skullc/coro/sleep.hpp"
|
#include "skullc/coro/sleep.hpp"
|
||||||
#include "skullc/coro/task.hpp"
|
#include "skullc/coro/task.hpp"
|
||||||
#include "skullc/coro/this_coro.hpp"
|
#include "skullc/coro/this_coro.hpp"
|
||||||
#include "skullc/coro/signal.hpp"
|
|
||||||
|
|
||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ skullc::coro::Task<> send_signal(const int value, skullc::coro::Signal<int>* sig
|
|||||||
co_return;
|
co_return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}// namespace
|
||||||
|
|
||||||
TEST_CASE("Signal awaiters work.", "[coro],[signal]")
|
TEST_CASE("Signal awaiters work.", "[coro],[signal]")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -83,9 +83,10 @@ public:
|
|||||||
|
|
||||||
return *awaiter_;
|
return *awaiter_;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::optional<T> data_;
|
std::optional<T> data_;
|
||||||
std::optional<Awaiter> awaiter_;
|
std::optional<Awaiter> awaiter_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}// namespace skullc::coro
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user