Skip to content

Commit bd04da1

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vortex-io/src/runtime/handle.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ impl Handle {
8282
}
8383

8484
/// A helper function to avoid manually cloning the handle when spawning nested tasks.
85+
///
86+
/// See [`Executor::spawn_io`] for more details.
87+
///
88+
/// See [`Task`] for details on cancelling or detaching the spawned task.
8589
pub fn spawn_nested<F, Fut, R>(&self, f: F) -> Task<R>
8690
where
8791
F: FnOnce(Handle) -> Fut,
@@ -92,7 +96,7 @@ impl Handle {
9296
}
9397

9498
/// Spawn a new I/O future onto the runtime.
95-
pub(crate) fn spawn_io<Fut, R>(&self, f: Fut) -> Task<R>
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)