From ab342b3b96cab24476a806cbbea52c4e661e228e Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Tue, 7 May 2024 11:25:44 +0800 Subject: [PATCH] docs: remove usage of deprecated tokio_core in docs --- capnp-rpc/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/capnp-rpc/src/lib.rs b/capnp-rpc/src/lib.rs index 3b9fc5141..4daa007a2 100644 --- a/capnp-rpc/src/lib.rs +++ b/capnp-rpc/src/lib.rs @@ -164,8 +164,9 @@ pub trait VatNetwork { /// will need to have more sophisticated `VatNetwork` implementations, in order to support /// [level 3](https://capnproto.org/rpc.html#protocol-features) features. /// -/// An `RpcSystem` is a `Future` and needs to be driven by a task executor. A common way -/// accomplish that is to pass the `RpcSystem` to `tokio_core::reactor::Handle::spawn()`. +/// An `RpcSystem` is a non-`Send`able `Future` and needs to be driven by a task +/// executor. A common way accomplish that is to pass the `RpcSystem` to +/// `tokio::task::spawn_local()`. #[must_use = "futures do nothing unless polled"] pub struct RpcSystem where