From b382495d28163908767df17b4fe9016bfa9d67bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Thu, 28 Nov 2024 19:25:39 +0900 Subject: [PATCH] doc(runtime): add clear docs about the sending behavior of OpFuture --- compio-runtime/src/runtime/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compio-runtime/src/runtime/mod.rs b/compio-runtime/src/runtime/mod.rs index 178dd3e5..edcb5c3b 100644 --- a/compio-runtime/src/runtime/mod.rs +++ b/compio-runtime/src/runtime/mod.rs @@ -506,6 +506,9 @@ pub fn spawn_blocking( /// Submit an operation to the current runtime, and return a future for it. /// +/// It is safe but unspecified behavior to send the returned future to another +/// runtime and poll it. +/// /// ## Panics /// /// This method doesn't create runtime. It tries to obtain the current runtime @@ -517,6 +520,9 @@ pub fn submit(op: T) -> impl Future