From 802dadec2069faac8a4b09489e66d88dbfc116b9 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Wed, 30 Aug 2023 12:59:43 -0400 Subject: [PATCH] fixup! docs: replace mentions of sync methods with coro --- docpages/example_programs/using_coroutines.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docpages/example_programs/using_coroutines.md b/docpages/example_programs/using_coroutines.md index 71f8265d70..58b460e4b3 100644 --- a/docpages/example_programs/using_coroutines.md +++ b/docpages/example_programs/using_coroutines.md @@ -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)`.