Skip to content

rust: Should spawn be renamed spawn_local? #1626

@lann

Description

@lann

spawn is documented to be single-threaded, but multi-threaded async execution is ubiquitous enough in the Rust ecosystem that it is easy to miss (or forget, even for people who really ought to know better 😐) the important distinction. Renaming the function could be a nice signal to users that this may not be the spawn they are looking for used to, and the semantics of the operation are significantly closer to what other Rust async executors call spawn_local.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions