Sitelet https://github.com/bodil/purescript-signal/issues/69
Skip to content

"now" won't return current Unix time if perf presented #69

Description

@chekoopa

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)
  • every instance for Unix time dispatching should be presented

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions