We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 828f770 commit bd04da1Copy full SHA for bd04da1
1 file changed
vortex-io/src/runtime/handle.rs
@@ -82,6 +82,10 @@ impl Handle {
82
}
83
84
/// 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.
89
pub fn spawn_nested<F, Fut, R>(&self, f: F) -> Task<R>
90
where
91
F: FnOnce(Handle) -> Fut,
@@ -92,7 +96,7 @@ impl Handle {
92
96
93
97
94
98
/// 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>
100
101
Fut: Future<Output = R> + Send + 'static,
102
R: Send + 'static,
0 commit comments