Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tokio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
tokio
Commits
f83f6388
Unverified
Commit
f83f6388
authored
4 years ago
by
Palash Ahuja
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
task: link to lib.rs in spawn_blocking documentation (#2426)
parent
13974068
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tokio/src/task/blocking.rs
+3
-4
3 additions, 4 deletions
tokio/src/task/blocking.rs
with
3 additions
and
4 deletions
tokio/src/task/blocking.rs
+
3
−
4
View file @
f83f6388
...
...
@@ -39,10 +39,9 @@ cfg_rt_threaded! {
cfg_blocking!
{
/// Runs the provided closure on a thread where blocking is acceptable.
///
/// In general, issuing a blocking call or performing a lot of compute in a future without
/// yielding is not okay, as it may prevent the executor from driving other futures forward.
/// A closure that is run through this method will instead be run on a dedicated thread pool for
/// such blocking tasks without holding up the main futures executor.
/// More information about the blocking threads is available at [CPU-bound tasks and blocking code][blocking].
///
/// [blocking]: ../index.html#cpu-bound-tasks-and-blocking-code
///
/// # Examples
///
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment