Skip to content

Commit c9df2bb

Browse files
authored
Merge pull request #492 from SteveLauC/docs/run_RpcSystem
docs: remove usage of deprecated tokio_core in docs
2 parents 528b64b + ab342b3 commit c9df2bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

capnp-rpc/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ pub trait VatNetwork<VatId> {
164164
/// will need to have more sophisticated `VatNetwork` implementations, in order to support
165165
/// [level 3](https://capnproto.org/rpc.html#protocol-features) features.
166166
///
167-
/// An `RpcSystem` is a `Future` and needs to be driven by a task executor. A common way
168-
/// accomplish that is to pass the `RpcSystem` to `tokio_core::reactor::Handle::spawn()`.
167+
/// An `RpcSystem` is a non-`Send`able `Future` and needs to be driven by a task
168+
/// executor. A common way accomplish that is to pass the `RpcSystem` to
169+
/// `tokio::task::spawn_local()`.
169170
#[must_use = "futures do nothing unless polled"]
170171
pub struct RpcSystem<VatId>
171172
where

0 commit comments

Comments
 (0)