| 2125 | /// This generator is async-reentrant |
| 2126 | template <typename T> |
| 2127 | AsyncGenerator<T> MakeCancellable(AsyncGenerator<T> source, StopToken stop_token) { |
| 2128 | return CancellableGenerator<T>{std::move(source), std::move(stop_token)}; |
| 2129 | } |
| 2130 | |
| 2131 | template <typename T> |
| 2132 | class DefaultIfEmptyGenerator { |