### C++20 Examples

##### Channels

Example showing how to use a channel in conjunction with C++20 coroutines.

- examples/cpp20/channels/mutual_exclusion_1.cpp
- examples/cpp20/channels/mutual_exclusion_2.cpp
- examples/cpp20/channels/throttling_proxy.cpp

##### Coroutines

Examples showing how to implement a chain of asynchronous operations using C++20 Coroutines.

- examples/cpp20/coroutines/echo_server.cpp
- examples/cpp20/coroutines/echo_server_with_default.cpp
- examples/cpp20/coroutines/echo_server_with_as_tuple_default.cpp
- examples/cpp20/coroutines/echo_server_with_as_single_default.cpp
- examples/cpp20/coroutines/echo_server_with_deferred.cpp
- examples/cpp20/coroutines/echo_server_with_deferred_default.cpp
- examples/cpp20/coroutines/refactored_echo_server.cpp
- examples/cpp20/coroutines/chat_server.cpp
- examples/cpp20/coroutines/timeout.cpp

##### Invocation

This example shows how to customise handler invocation using a user-defined completion executor.

- examples/cpp20/invocation/completion_executor.cpp

##### Operations

Examples showing how to implement composed asynchronous operations as reusable library functions.

- examples/cpp20/operations/composed_1.cpp
- examples/cpp20/operations/composed_2.cpp
- examples/cpp20/operations/composed_3.cpp
- examples/cpp20/operations/composed_4.cpp
- examples/cpp20/operations/composed_5.cpp
- examples/cpp20/operations/composed_6.cpp
- examples/cpp20/operations/composed_7.cpp
- examples/cpp20/operations/composed_8.cpp

Examples showing how to expose callback-based APIs as asynchronous operations.

- examples/cpp20/operations/callback_wrapper.cpp
- examples/cpp20/operations/c_callback_wrapper.cpp

##### Type Erasure

Example showing how to use `any_completion_handler` to enable separate compilation of asynchronous operations.

- examples/cpp20/type_erasure/main.cpp
- examples/cpp20/type_erasure/line_reader.hpp
- examples/cpp20/type_erasure/stdin_line_reader.hpp
- examples/cpp20/type_erasure/stdin_line_reader.cpp
- examples/cpp20/type_erasure/sleep.hpp
- examples/cpp20/type_erasure/sleep.cpp