@@ -10,6 +10,9 @@ import { TaskBase } from "./taskinterfaces";
10
10
* [[DurableOrchestrationContext]] operation is not called with `yield`. They
11
11
* are useful for parallelization and timeout operations in conjunction with
12
12
* Task.all and Task.any.
13
+ *
14
+ * We discourage the usage of `instanceof`-style guards on this type,
15
+ * as it is subject to change in the future.
13
16
*
14
17
* @example Wait for all parallel operations to complete
15
18
* ```javascript
@@ -35,6 +38,7 @@ import { TaskBase } from "./taskinterfaces";
35
38
*/
36
39
export class Task implements TaskBase {
37
40
/**
41
+ * @hidden
38
42
* Used to keep track of how many times the task has been yielded to avoid
39
43
* scheduling the internal action multiple times _Internal use only._
40
44
*/
@@ -52,6 +56,7 @@ export class Task implements TaskBase {
52
56
*/
53
57
public readonly isFaulted : boolean ,
54
58
/**
59
+ * @hidden
55
60
* The scheduled action represented by the task. _Internal use only._
56
61
*/
57
62
public readonly action : IAction ,
@@ -60,10 +65,12 @@ export class Task implements TaskBase {
60
65
*/
61
66
public readonly result ?: unknown ,
62
67
/**
68
+ * @hidden
63
69
* The timestamp of the task.
64
70
*/
65
71
public readonly timestamp ?: Date ,
66
72
/**
73
+ * @hidden
67
74
* The ID number of the task. _Internal use only._
68
75
*/
69
76
public readonly id ?: number ,
@@ -75,12 +82,14 @@ export class Task implements TaskBase {
75
82
public readonly exception ?: Error | undefined ,
76
83
77
84
/**
85
+ * @hidden
78
86
* The index in the history state where the task was marked completed. _Internal use only._
79
87
*/
80
88
public readonly completionIndex ?: number ,
81
89
) { }
82
90
83
91
/**
92
+ * @hidden
84
93
* _Internal use only._
85
94
*/
86
95
public yieldNewActions ( ) : IAction [ ] {
0 commit comments