Very janky barely working coroutine version of the game, the UI is more responsive, but not as much as it should be. Still, take a look and study the coro.hpp and other files in this commit for some coroutine stuff.
This commit is contained in:
parent
8f7235ade1
commit
cacf72604f
6 changed files with 38 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
Task<unsigned> task_test()
|
||||
{
|
||||
co_await std::suspend_always{};
|
||||
co_await Pass{};
|
||||
|
||||
for (unsigned i = 0; i < 3; ++i)
|
||||
co_yield i;
|
||||
|
@ -15,7 +15,6 @@ Task<unsigned> task_test()
|
|||
|
||||
int main()
|
||||
{
|
||||
|
||||
const int task_count = 4;
|
||||
vector<Task<unsigned>> tasks;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue