Skip to content

Commit

Permalink
Doc: correct a statement feature singlethreaded eliminates Send bound
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored and drmingdrmer committed Mar 22, 2024
1 parent fc73dc7 commit 0ccf70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openraft/src/docs/feature_flags/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Removes `Send` and `Sync` bounds from `AppData`, `AppDataResponse`, `RaftEntry`,
and other types to force the asynchronous runtime to spawn any tasks in the current thread.
This is for any single-threaded application that never allows a raft instance to be shared among multiple threads.
This feature relies on the `async_fn_in_trait` language feature that is officially supported from Rust 1.75.0.
If the feature is enabled, affected asynchronous trait methods require `Send` bounds.
If the feature is enabled, affected asynchronous trait methods will not require `Send` bounds.
In order to use the feature, `AsyncRuntime::spawn` should invoke `tokio::task::spawn_local` or equivalents.


Expand Down

0 comments on commit 0ccf70d

Please sign in to comment.