-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: use
Executor
trait instead of concrete type
Alternative to #24. Currently, `Pool` cannot be used at all. It requires a concrete `Exec`, and that is private. The #24 PR simply made `Exec` public. However, there is already other things in this crate that require an `Exec` (`legacy::Client`). This adapts `Pool` to follow the same pattern as used for `Client`, taking in a trait. This change is NOT a breaking change, as `Pool` cannot be used at all currently, so no one could be broken.
- Loading branch information
1 parent
11776bd
commit b388617
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters