-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: overhaul construction patterns (
.NewManagerWithOptions()
) (#4)
The way the `Manager` was constructed was a bit too rough, with the consumer being forced to update fields on the initialised struct to attach the hooks. With this PR, we now have a new function `background.NewManagerWithOptions()` that should make the initialisation process a bit more clear as to what can go in. 💪
- Loading branch information
Showing
2 changed files
with
127 additions
and
78 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