Skip to content

meta: Task Builder stabilization #4114

@seanmonstar

Description

@seanmonstar

This is to track the currently unstable tokio::task::Builder API. To use it, you must pass --cfg tokio_unstable to rustc.

RFC: https://hackmd.io/Vm0UXvrNTg6HleGlD8C8sg
PR: #3881

Roadmap

  • Include code from PR in a crates.io release
  • Resolve open questions

Open questions

  • How do we allow adding more context to the spawned task's tracing span?
    • If tracing is at 1.0, we could allow passing Builder::span directly.
    • To hide tracing, we could use some imaginary Builder::tag(name, value) that uses Span::record internally.
    • Or we could maybe make use of valuable

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-enhancementCategory: A PR with an enhancement or bugfix.M-taskModule: tokio/taskM-tracingTracing support in Tokio

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions