You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: doc/task.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,9 @@ We handle several kinds of tasks in zone.js,
8
8
9
9
For details, please refer to [here](../dist/zone.js.d.ts)
10
10
11
-
And in this documentation, it will explain the task lifecycle about which callback
12
-
of zoneSpec will be triggered when.
11
+
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.
13
12
14
-
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.
13
+
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.
15
14
16
15
### MicroTask
17
16
Such as Promise.then, process.nextTick, they are microTasks, the lifecycle(state transition)
0 commit comments