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

Lwt_react.limit does not work as expected #565

Closed
meadofpoetry opened this issue Mar 16, 2018 · 0 comments
Closed

Lwt_react.limit does not work as expected #565

meadofpoetry opened this issue Mar 16, 2018 · 0 comments

Comments

@meadofpoetry
Copy link
Contributor

meadofpoetry commented Mar 16, 2018

The documentation states that

[limit f e] limits the rate of [e] with [f].

For example, to limit the rate of an event to 1 per second you
can use: [limit (fun () -> Lwt_unix.sleep 1.0) event].

however limited events occur more that once per second, since after a limiter awakes new event occurs instantly.

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

1 participant