코루틴 지원 (C++20)
cppreference.com
< cpp
코루틴 지원 라이브러리에는 코루틴 컴파일/실행타임 지원을 제공하기 위한 몇 가지 타입을 정의하고 있습니다..
코루틴 traits
<coroutine> 헤더에 정의됨. | |
(C++20) |
trait type for discovering coroutine promise types (class template) |
코루틴 핸들
<coroutine> 헤더에 정의됨. | |
(C++20) |
대기 중이거나 실행 중인 코루틴을 참조하기 위해 사용합니다 (class template) |
No-op 코루틴
<coroutine> 헤더에 정의됨. | |
(C++20) |
creates a coroutine handle that has no observable effects when resumed or destroyed (function) |
(C++20) |
used for coroutines with no observable effects (class) |
(C++20) |
std::coroutine_handle<std::noop_coroutine_promise>, intended to refer to a no-op coroutine (typedef) |
Trivial awaitables
<coroutine> 헤더에 정의됨. | |
(C++20) |
indicates that an await-expression should never suspend (class) |
(C++20) |
indicates that an await-expression should always suspend (class) |