Folly Code Review
folly::CancellationToken — 코루틴·Future 취소 전파
CancellationSource/Token의 전파 모델 — coroutine·Future·callback 트리에서 협력적 취소.
· 4분 읽기
cpp folly
7개의 포스트
CancellationSource/Token의 전파 모델 — coroutine·Future·callback 트리에서 협력적 취소.
Try<T>의 세 상태 (value/exception/empty), Future 내부에서의 역할, exception_wrapper와의 관계.
Future 조립의 제어 흐름 — 재시도, 동시성 윈도, executor 전환.
여러 SemiFuture를 모으는 세 가지 의미 — 모두 성공, 모두 완료, 하나만 완료.
Future continuation API의 세 변형 — 정상값, 예외, 통합 처리. .then은 deprecated.
folly::Promise로 비동기 완료를 표현하고, makeFuture/makeSemiFuture로 이미 결정된 값을 Future 인터페이스에 올린다.
folly::Future가 std::future의 어떤 한계를 해결하는가 — continuation, executor binding, exception 전파.