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

Allow customizing when to automatically re-fill the credit #199

Open
Tracked by #207
minghuaw opened this issue Apr 3, 2023 · 0 comments
Open
Tracked by #207

Allow customizing when to automatically re-fill the credit #199

minghuaw opened this issue Apr 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@minghuaw
Copy link
Owner

minghuaw commented Apr 3, 2023

Add a functionality that allow user to define a custom function in the form of FnOnce(u32) -> bool to determine when the credits will be re-filled automatically. The function will have no effect if the credit mode is not Auto. A default function that re-fills the credit at half of the total credit will be provided.

@minghuaw minghuaw added the enhancement New feature or request label May 1, 2023
@minghuaw minghuaw mentioned this issue May 21, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant