| 2005 | template <typename T> |
| 2006 | struct CancellableGenerator { |
| 2007 | Future<T> operator()() { |
| 2008 | if (stop_token.IsStopRequested()) { |
| 2009 | return stop_token.Poll(); |
| 2010 | } |
| 2011 | return source(); |
| 2012 | } |
| 2013 | |
| 2014 | AsyncGenerator<T> source; |
| 2015 | StopToken stop_token; |
nothing calls this directly
no test coverage detected