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