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

Add in value argument to throttle #33

Open
Pauan opened this issue Jun 16, 2021 · 0 comments
Open

Add in value argument to throttle #33

Pauan opened this issue Jun 16, 2021 · 0 comments
Assignees

Comments

@Pauan
Copy link
Owner

Pauan commented Jun 16, 2021

Right now the type of throttle is this:

fn throttle<A, B>(self, callback: B) -> Throttle<Self, A, B>
    where A: Future<Output = ()>,
          B: FnMut() -> A,
          Self: Sized

But it should be like this instead:

fn throttle<A, B>(self, callback: B) -> Throttle<Self, A, B>
    where A: Future<Output = ()>,
          B: FnMut(&Self::Item) -> A,
          Self: Sized
@Pauan Pauan self-assigned this Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant