| 43 | } |
| 44 | |
| 45 | Lazy<int> CountFileCharNum(const std::string &filename, char c) { |
| 46 | Texts Contents = co_await ReadFile(filename); |
| 47 | co_return co_await CountTextChar(Contents, c); |
| 48 | } |
| 49 | |
| 50 | int main() { |
| 51 | int Num = syncAwait(CountFileCharNum("demo_example/Input/file.txt", 'x')); |
no test coverage detected