Functional reactive programming library
#7periodic seems to fire at most one event per frame
Disclaimer: I'm new to Netwire and new to functional programming and haskell in general.
I've tried the following wire testing, to see whether periodic actually fires multiple events or not
testWire clockSession_ (asSoonAs . accumE (flip (:)) [] . takeE 6 . periodic 0.00001 . time)
This would take the current time, fire periodically with a very short time, then we take only 6 events and accumulate the times into a list.
The result was [0.0059756s,0.0049784s,0.0039766s,0.0029947s,0.0020105s,0s]
Which shows we're limited to about once per millisecond, rather that having multiple values in the same frame.
The brings the question, are there any other cases we more than one event should fired at once but only one does, like a loop of "once --> once ... "
- description updated
- status set to closed
- added tag feature
- added tag wontfix
There is no implicit handling of multiple occurrences. This requires some extra thought and complicated handling. Netwire will not change its semantics in that regard, because it will be obsoleted by the newer wires library that already does handle multiple occurrences in the same frame.