Skip to content

Commit

Permalink
Asap scheduler id fix (#3610)
Browse files Browse the repository at this point in the history
* feat(schedulers): `scheduled` and `active` properties deprecated

related #3572

* fix(asapScheduler): scheduled property always greater than 1

fixes #3572
  • Loading branch information
benlesh authored May 3, 2018
1 parent 96f05b0 commit 733807b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/internal/scheduler/AsyncScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ export class AsyncScheduler extends Scheduler {
* A flag to indicate whether the Scheduler is currently executing a batch of
* queued actions.
* @type {boolean}
* @deprecated internal use only
*/
public active: boolean = false;
/**
* An internal ID used to track the latest asynchronous task such as those
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
* others.
* @type {any}
* @deprecated internal use only
*/
public scheduled: any = undefined;

Expand Down
2 changes: 1 addition & 1 deletion src/internal/util/Immediate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let nextHandle = 0;
let nextHandle = 1;

const tasksByHandle: { [handle: string]: () => void } = {};

Expand Down

0 comments on commit 733807b

Please sign in to comment.