Skip to content

concurrency: re-export futures-concurrency? #17

Closed

Description

@pchickey

We believe tasks are the wrong abstaction. Lets instead make it as easy as possible for wstd users to use the right abstraction by re-exporting futures-concurrency, @yoshuawuyts 's crate that provides the right abstraction, and use it in wstd's examples and docs.

Activity

  1. pchickey commented on Nov 19, 2024

    @pchickey
    ContributorAuthor

    Right now the thinking is we will re-export all of the modules from futures-concurrency except for prelude, and define a pub mod prelude { pub use futures_concurrency::prelude::*; pub use crate::io::{AsyncRead, AsyncWrite}, etc etc }

  2. pchickey commented on Sep 24, 2025

    @pchickey
    ContributorAuthor

    We added tasks in #86.

  3. teohhanhui commented on Sep 24, 2025

    @teohhanhui
    Contributor

    We believe tasks are the wrong abstaction.

    Has this changed?

  4. pchickey commented on Sep 24, 2025

    @pchickey
    ContributorAuthor

    At least personally I'd change my feelings to "tasks are the abstraction of last resort" rather than always wrong, but the broader ecosystem more or less demands tasks, and component model async has tasks. So, we relented.

  5. yoshuawuyts commented on Sep 25, 2025

    @yoshuawuyts
    Member

    but the broader ecosystem more or less demands tasks

    To expand on this: we want to be able to support Axum and Hyper on wstd, and both of these assume a particular task model. While I still hold that the tasks model is wrong, creating practical software now is more important than ideological purity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions