scalaz/scalaz-stream — pull request #53 by jessitron (2013-11-25 03:25:39+00:00)
Title: Process.every doesn't work

every(d: Duration) is intended to spike true once per duration, and say false otherwise.

Before the duration fix #52, every said true at first and then always false.

After the duration fix, its value was determined at first request and then repeated over and over, because it was comparing two durations that differed only by that initial distance.

Now it works (in my interpretation), returning true first and then false until duration has passed, then true. It is true if the delay has passed since the last request, false otherwise.

The test isn't pretty. Perhaps someone else has a more elegant property design for it.