-
Notifications
You must be signed in to change notification settings - Fork 3
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
Deglitcher interface for Views #647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
038bb42
to
03d032e
Compare
Now this ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance for some tests? :)
@@ -3,7 +3,6 @@ | |||
|
|||
package crystal | |||
|
|||
import cats.Eq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh. At first I read this as View Flaws Spec.
yup, working on that |
G.monotonic.flatMap(now => waitUntil.set(now + timeout)) | ||
|
||
private def throttlerView(view: ViewF[F, A]): ViewF[F, A] = | ||
view.withOnMod(_ => curb) // todo try to curb before modding?? maybe not necessary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timeout is reset with each modification? Good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me! But, I agree that some tests would be nice. :)
Tests were added, and the fixes for the bugs they revealed. |
No description provided.