Skip to content

Commit

Permalink
fixup! docs: replace mentions of sync methods with coro
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed Aug 30, 2023
1 parent df8c6f1 commit 802dade
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docpages/example_programs/using_coroutines.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

One of the most anticipated features of C++20 is the addition of coroutines: in short, they are functions that can be paused while waiting for data and resumed when that data is ready. They make asynchronous programs much easier to write, but they do come with additional dangers and subtleties.

Currently you will need to build D++ \ref install-from-source "from source" and use the option `-DDPP_CORO=on` in your CMake command.
Your application also needs to enable C++20 and define DPP_CORO, by using:
* `-std=c++20 -DDPP_CORO` in your build command if building manually, or
* if using CMake, add `target_compile_definitions(my_program PUBLIC DPP_CORO)` and `target_compile_features(my_program PUBLIC cxx_std_20)`.


* \subpage coro-introduction
* \subpage coro-simple-commands
* \subpage awaiting-events
* \subpage expiring-buttons

Currently you will need to build D++ \ref install-from-source "from source" and use the option `-DDPP_CORO=on` in your CMake command.
Your application also needs to enable C++20 and define DPP_CORO, by using:
- `-std=c++20 -DDPP_CORO` in your build command if building manually, or
- if using CMake, add `target_compile_definitions(my_program PUBLIC DPP_CORO)` and `target_compile_features(my_program PUBLIC cxx_std_20)`.

0 comments on commit 802dade

Please sign in to comment.