Giter VIP home page Giter VIP logo

Comments (1)

hawkw avatar hawkw commented on August 15, 2024

We could either consider it a form of spawn, thus using runtime::spawn for the span and setting the kind=block_on or kind=main. Or, we could call it runtime::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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.