purescript-signal
purescript-signal copied to clipboard
"now" won't return current Unix time if perf presented
I've tried using Signal.Time.every in a Elm-like fashion (sending messages with a Unix timestamp applied), but instead it returns time from the session (kinda) start, because it relies on performance and process, using Date.now as a fallback only.
The closest workaround is copying everyP and re-implementing now in own foreign module.
But either or both:
- the documentation really should note that moment (from which JS object it takes current time)
-
everyinstance for Unix time dispatching should be presented