Skip to content

Rethink PoolBuilder interface #481

@bikeshedder

Description

@bikeshedder

The design philosophy of deadpool and the deadpool-* crates has always been to offer the best possible DX while also avoiding configuration behind write-only builder patterns. This is mostly true but the PoolBuilder is a strange beast as it wraps a PoolConfig the hooks and the selected runtime.

The generic Wrapper parameter makes it a bit difficult to turn this into a regular struct but I kind of think that the methods which modify the underlying PoolConfig are kinda redundant and are of little actual value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    quality of lifeImprovements to the API resulting in a better quality of life for the users of deadpool.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions