Skip to content

Commit

Permalink
readme: brush up per-lang docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Oct 7, 2024
1 parent 7ad974d commit 3dd9e57
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,8 @@ The two fundamental building blocks here are:
callback, with is a function-like thing. For example, passing
`watch` a character array and a closure would work well in C++.

Typical use looks like this in C++:

```cpp
auto watcher = watch(path, [](event ev) { cout << ev; });
```
Examples for other languages can be found in the [Quick Start](https://github.com/e-dant/watcher/tree/release#quick-start),
but the pattern is similar.
Examples for a variety of languages can be found in the [Quick Start](https://github.com/e-dant/watcher/tree/release#quick-start).
The API is relatively consistent across languages.

The watcher will happily continue watching until you stop
it or it hits an unrecoverable error.
Expand Down

0 comments on commit 3dd9e57

Please sign in to comment.