Skip to content

Server should be an executable Future, not an executor (shim) in its own right #422

Open
@vorot93

Description

@vorot93

jsonrpc's ServerBuilder accepts a custom executor or starts its own and then requires the user to start it.

On the other hand, both hyper and tarpc build a Server struct that is a plain Future that can be spawned on user's executor of choice. It is way more ergonomic and in line with async ecosystem's move towards separation of logic and its execution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions