Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add a flush method to the FakeAsync zone spec #755

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

juliemr
Copy link
Member

@juliemr juliemr commented Apr 24, 2017

The flush method advances time until all non-periodic timers
are cleared from the queue. It has a configurable limit (default 20)
of tasks that will be run before it gives up and throws an error,
in order to avoid infinite loops when polling timeouts are present.

Closes #735

@mhevery
Copy link
Contributor

mhevery commented Apr 25, 2017

It seems to be failing CI. Could you have a look? Is it ready to merge?

@juliemr
Copy link
Member Author

juliemr commented Apr 25, 2017

It looks like IE is unhappy about something - I'll debug.

The `flush` method advances time until all non-periodic timers
are cleared from the queue. It has a configurable limit (default 20)
of tasks that will be run before it gives up and throws an error,
in order to avoid infinite loops when polling timeouts are present.

Closes angular#735
@juliemr
Copy link
Member Author

juliemr commented Apr 25, 2017

IE is now happy! I think this is ready for merge unless @vikerman would like to comment.

@vikerman
Copy link
Contributor

LGTM

@mhevery mhevery merged commit bb6aadc into angular:master Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants