8000 [Feature request] Layer to support delegating requests to arbitrary executor · Issue #807 · tower-rs/tower · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature request] Layer to support delegating requests to arbitrary executor #807
Open
@jlizen

Description

@jlizen

(Glad to contribute this, cutting an issue to gauge interest first)

Today we have the buffer layer which allows delegating requests to a background worker, but in serial.

I recently cut a change to reqwest that includes example code for a similar sort of layer, but this time processed in parallel by a different executor. It was fairly verbose boilerplate.

Would we want something similar in the tower's built in layers, under a feature flag? I could make it somewhat less opinionated by accepting an executor trait implementation. Or is that too niche to include in the main package?

Open to contributing something along these lines, but seeking feedback about what's useful (if anything :) )

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

      0