Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create callback could be made ?Sized #4

Open
nagisa opened this issue Jun 12, 2022 · 1 comment
Open

create callback could be made ?Sized #4

nagisa opened this issue Jun 12, 2022 · 1 comment

Comments

@nagisa
Copy link

nagisa commented Jun 12, 2022

Internally DynamicPool will box the callback, so there isn't a good reason to prevent something like DynamicPool<dyn Fn() -> T> from being specified.

@jhgg
Copy link
Contributor

jhgg commented Jun 12, 2022

Feel free to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants