| 2110 | template <typename T> |
| 2111 | struct CancellableGenerator { |
| 2112 | Future<T> operator()() { |
| 2113 | if (stop_token.IsStopRequested()) { |
| 2114 | return stop_token.Poll(); |
| 2115 | } |
| 2116 | return source(); |
| 2117 | } |
| 2118 | |
| 2119 | AsyncGenerator<T> source; |
| 2120 | StopToken stop_token; |
nothing calls this directly
no test coverage detected