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

Remove Timer promises catch clause #5758

Merged
merged 2 commits into from
Oct 24, 2016

Conversation

jridgewell
Copy link
Contributor

Timer's promises can only fail because of being unable to schedule.

So timerKey is either:

  • -1, in which case the catch is unnecessary
  • Some timer id, whose promise will eventually resolve.

Copy link
Member

@cramforce cramforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99% sure this LGTM

Timer's promises can only fail because of being unable to schedule.
@jridgewell jridgewell merged commit 151a343 into ampproject:master Oct 24, 2016
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Remove Timer promises catch clause

Timer's promises can only fail because of being unable to schedule.

* Temp fix amp-form tests

Re: ampproject#5775
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Remove Timer promises catch clause

Timer's promises can only fail because of being unable to schedule.

* Temp fix amp-form tests

Re: ampproject#5775
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.

2 participants