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

Commit

Permalink
docs: Re-phrase the lines for better understanding (#1151)
Browse files Browse the repository at this point in the history
Few lines need to be re-phrased for better understanding.
  • Loading branch information
manishbansal8843 authored and mhevery committed Mar 7, 2019
1 parent f171821 commit 2a6444b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ We handle several kinds of tasks in zone.js,

For details, please refer to [here](../dist/zone.js.d.ts)

And in this documentation, it will explain the task lifecycle about which callback
of zoneSpec will be triggered when.
This document will explain the lifecycle (state-transition) of different types of tasks and also the triggering of various zonespec's callback during that cycle.

The motivation to write this because of this [PR](https://github.com/angular/zone.js/pull/629) of @mhevery. That task's state become more clear and can be rescheduled and override.
The motivation to write this document has come from this [PR](https://github.com/angular/zone.js/pull/629) of @mhevery. This has made the task's state more clear. Also, tasks can now be cancelled and rescheduled in different zone.

### MicroTask
Such as Promise.then, process.nextTick, they are microTasks, the lifecycle(state transition)
Expand Down

0 comments on commit 2a6444b

Please sign in to comment.