Skip to content

Make it possible to change "now" #697

Description

@J00nz

As a developer it would be very nice to have a way to override the internal "now" functionality.

I realize that it is possible to send it, or rather "time2, as a argument when invoking methods, but that is a very cumbersome way of doing it.

I propose a way to simply "setNow" that takes a function as a argument and overrides "now" to this.

It would make implementations that modifies the "rate" of time much more convenient to do.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions