Comments (1)
We could either consider it a form of spawn, thus using
runtime::spawn
for the span and setting thekind=block_on
orkind=main
. Or, we could call itruntime::block_on
, but then we'd need to add support to the Console to look for that new span.
hmm...in retrospect, perhaps a better name would have been runtime::task
, rather than runtime::spawn
. i think it's a little more reasonable to think of block_on
as being a "task" than as being a "spawn". but, i dunno if it's worth the effort of renaming everything again (and adding another set of backwards compatibility names for in case people are using old tokio versions) just to make it the most correct possible.
honestly, i would probably just add a span in Tokio with the runtime::spawn
name and kind=block_on
...that seems like the lowest effort and doesn't require new code in the console. we could then consider renaming the target from spawn
to task
in a follow-up?
from console.
Related Issues (20)
- `tokio-console` won't quit when the main program has exit HOT 1
- Improve attributes sorting in the resources tab
- subscriber: add grpc-web support to console-subscriber HOT 4
- a global default trace dispatcher has already been set HOT 8
- RUSTSEC-2021-0145: Potential unaligned read
- Console doesn't detect self wakes from `tokio::task::yield_now()` after Tokio 1.23 HOT 5
- Key presses happen twice on Windows HOT 4
- `blocking` and `block_on` tasks have false positive lints HOT 1
- Autodetection of new execution not always working
- Make better use of space in task detail screen HOT 1
- Format "last woken" time prettily HOT 4
- tokio::task::spawn_blocking() tasks show as 'warning: task has never yielded' HOT 2
- Analyze log files and log playback HOT 1
- tokio-console cannot handle window path correctly
- tokio-console cannot show the pause status correctly HOT 5
- assertion failed: meta.is_event() HOT 3
- The application panicked (crashed) when trying to `ENTER` on a resource HOT 1
- Crash when selecting a task that no longer exists HOT 2
- Improve Task Diagnostics UI readability for Location and other columns with dynamic widths
- `tokio-console` fails to compile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console.