Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cap min timer interval at 1µs, thus improving compatibility with v0.4 #47

Merged
merged 1 commit into from
Dec 28, 2016

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