Skip to content

Commit

Permalink
fix: outdated README
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyMatt committed Jun 18, 2024
1 parent ededb24 commit d012b7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ for n in nodes.data {
### `tokio` support

This client supports nonblocking API using the [`tokio`](https://tokio.rs/) runtime.
The `tokio` feature is enabled by default.
It can be enabled like so:

```toml
falkordb = { version = "0.1", features = ["tokio"] }
```

Currently, this API requires running within a [`multi_threaded tokio scheduler`](https://docs.rs/tokio/latest/tokio/runtime/index.html#multi-thread-scheduler), and does not support the `current_thread` one, but this will probably be supported in the future.

The API uses an almost identical API, but the various functions need to be awaited:
Expand Down

0 comments on commit d012b7c

Please sign in to comment.