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