Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
dakka committed Sep 21, 2023
1 parent 06e6fae commit 368571b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,17 +487,17 @@ int main()
std::array { "for", "who", "me.", "them", R"(myself.")", "" },
};

for (const auto& pp : wordset)
{
fiber ([](const auto& words)
{
for (auto qq : words)
{
std::cout << qq << ' ';
this_fiber::yield();
}
}, pp).detach();
}
for (const auto& pp : wordset)
{
fiber ([](const auto& words)
{
for (auto qq : words)
{
std::cout << qq << ' ';
this_fiber::yield();
}
}, pp).detach();
}

return 0;
}
Expand Down

0 comments on commit 368571b

Please sign in to comment.