Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented Mar 13, 2016

This change only aims to improve compatibility with v0.4 which already has the same behavior:

const MIN_INTERVAL = 0.000001;

Currently (v0.3 only), when passing an interval smaller than 1ms, we will throw an InvalidArgumentException.

With this change applied, the minimum timer interval is capped at 1µs. This means that passing any smaller interval will still try to execute the timer in 1µs.

There are quite a few libraries that target both v0.3 and v0.4 of this component, so it makes sense to keep BC breaks between those versions to a minimum. I'll look into linking relevant tickets against this PR.

FWIW: No tests included because the v0.3 branch does not currently contain any tests unfortunately.

@WyriHaximus
Copy link
Member

LGTM :shipit:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants