Skip to content

Allow modifying a Server's zbus connection builder #16

@DJ-Laser

Description

@DJ-Laser

By default zbus Connections spawn a thread per connection, however this can be disabled by calling .internal_executor(false) on it's builder, and manually ticking it (in my case by spawning a future onto smol's executor).

While spawning another thread unnecessarily isn't a huge deal, being able to modify the connection builder in general could be very useful, even if gated behind the unstable feature.

Unfortunately Server::connection isn't much help, since the executor needs to be disabled before it's built, and can't be disabled after, and I don't see any good solutions to allow modifying the Server's connection that aren't breaking changes.

See:
https://docs.rs/zbus/latest/zbus/connection/struct.Connection.html#method.executor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions