Skip to content

Commit d59e6ab

Browse files
committed
docs and pub
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 828f770 commit d59e6ab

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

vortex-io/public-api.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ pub fn vortex_io::runtime::Handle::spawn_blocking<F, R>(&self, F) -> vortex_io::
380380

381381
pub fn vortex_io::runtime::Handle::spawn_cpu<F, R>(&self, F) -> vortex_io::runtime::Task<R> where F: core::ops::function::FnOnce() -> R + core::marker::Send + 'static, R: core::marker::Send + 'static
382382

383+
pub fn vortex_io::runtime::Handle::spawn_io<Fut, R>(&self, Fut) -> vortex_io::runtime::Task<R> where Fut: core::future::future::Future<Output = R> + core::marker::Send + 'static, R: core::marker::Send + 'static
384+
383385
pub fn vortex_io::runtime::Handle::spawn_nested<F, Fut, R>(&self, F) -> vortex_io::runtime::Task<R> where F: core::ops::function::FnOnce(vortex_io::runtime::Handle) -> Fut, Fut: core::future::future::Future<Output = R> + core::marker::Send + 'static, R: core::marker::Send + 'static
384386

385387
impl core::clone::Clone for vortex_io::runtime::Handle

vortex-io/src/runtime/handle.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ impl Handle {
9292
}
9393

9494
/// Spawn a new I/O future onto the runtime.
95-
pub(crate) fn spawn_io<Fut, R>(&self, f: Fut) -> Task<R>
95+
///
96+
/// See [`Executor::spawn_io`] for more details about how this future is expected to run.
97+
///
98+
// See [`Task`] for details on cancelling or detaching the spawned task.
99+
pub fn spawn_io<Fut, R>(&self, f: Fut) -> Task<R>
96100
where
97101
Fut: Future<Output = R> + Send + 'static,
98102
R: Send + 'static,

0 commit comments

Comments
 (0)