Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8e6dbb5
feat: clarify spawn call
Its-Just-Nans Dec 29, 2025
051623b
Update tokio/src/runtime/runtime.rs
Its-Just-Nans Dec 29, 2025
924d772
update sentence
Its-Just-Nans Dec 29, 2025
dede762
fix CI
Its-Just-Nans Dec 29, 2025
f2ab9df
Update tokio/src/runtime/runtime.rs
Its-Just-Nans Dec 29, 2025
02a5ce9
fix link
Its-Just-Nans Dec 29, 2025
dc7a2ce
Merge branch 'change-doc-sentence' of github.com:Its-Just-Nans/tokio …
Its-Just-Nans Dec 29, 2025
52a2cc3
Update tokio/src/runtime/handle.rs
Its-Just-Nans Dec 30, 2025
14bfb82
Update tokio/src/task/spawn.rs
Its-Just-Nans Dec 30, 2025
25e30be
Update tokio/src/task/spawn.rs
Its-Just-Nans Dec 30, 2025
9a08f17
Update tokio/src/task/spawn.rs
Its-Just-Nans Dec 30, 2025
fbcd157
Update tokio/src/runtime/runtime.rs
Its-Just-Nans Dec 30, 2025
3063480
Update tokio/src/runtime/runtime.rs
Its-Just-Nans Dec 30, 2025
19976ba
fix doc link for runtime
Its-Just-Nans Jan 1, 2026
7a8cb70
try new docs
Its-Just-Nans Jan 2, 2026
33b05d9
add https://github.com/tokio-rs/tokio/pull/7803#issuecomment-3703940381
Its-Just-Nans Jan 2, 2026
f8b168d
spellcheck
Its-Just-Nans Jan 2, 2026
2c80c10
fmt
Its-Just-Nans Jan 2, 2026
66496ef
change docs
Its-Just-Nans Jan 3, 2026
cefed98
spellcheck
Its-Just-Nans Jan 3, 2026
531b492
spelling
Its-Just-Nans Jan 3, 2026
ab1bf79
Update tokio/src/runtime/handle.rs
Its-Just-Nans Jan 24, 2026
a705a47
add
Its-Just-Nans Jan 24, 2026
9a27185
fix doc
Its-Just-Nans Jan 29, 2026
37f51a1
change wording
Its-Just-Nans Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tokio/src/runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,14 @@ impl Runtime {
&self.handle
}

/// Spawns a future onto the Tokio runtime.
/// Spawns a future onto the Tokio runtime and return a [`JoinHandle`].
Comment thread
ADD-SP marked this conversation as resolved.
Outdated
///
/// This spawns the given future onto the runtime's executor, usually a
/// thread pool. The thread pool is then responsible for polling the future
/// until it completes.
///
/// The provided future will start running in the background immediately
/// when `spawn` is called, even if you don't await the returned
/// `JoinHandle`.
/// When this function is called, if the thread pool is active, the provided future
/// will start running in the background immediately.
Comment thread
Its-Just-Nans marked this conversation as resolved.
Outdated
///
/// See [module level][mod] documentation for more details.
///
Expand Down
Loading