@@ -92,7 +92,37 @@ const idleStrategy: RxStrategyCredentials = {
92
92
} ;
93
93
94
94
const postTaskUserVisibleStrategy : RxStrategyCredentials = {
95
- name : 'userVisible' ,
95
+ name : 'postTaskUserVisible' ,
96
+ work : ( cdRef ) => cdRef . detectChanges ( ) ,
97
+ behavior : ( { work, scope, ngZone } ) => {
98
+ return ( o$ ) =>
99
+ o$ . pipe (
100
+ scheduleOnPostTaskQueue ( work , {
101
+ ngZone,
102
+ priority : PriorityLevel . NormalPriority ,
103
+ scope,
104
+ } )
105
+ ) ;
106
+ } ,
107
+ } ;
108
+
109
+ const postTaskUserBlockingStrategy : RxStrategyCredentials = {
110
+ name : 'postTaskUserBlocking' ,
111
+ work : ( cdRef ) => cdRef . detectChanges ( ) ,
112
+ behavior : ( { work, scope, ngZone } ) => {
113
+ return ( o$ ) =>
114
+ o$ . pipe (
115
+ scheduleOnPostTaskQueue ( work , {
116
+ ngZone,
117
+ priority : PriorityLevel . UserBlockingPriority ,
118
+ scope,
119
+ } )
120
+ ) ;
121
+ } ,
122
+ } ;
123
+
124
+ const postTaskBackgroundStrategy : RxStrategyCredentials = {
125
+ name : 'postTaskBackground' ,
96
126
work : ( cdRef ) => cdRef . detectChanges ( ) ,
97
127
behavior : ( { work, scope, ngZone } ) => {
98
128
return ( o$ ) =>
@@ -181,5 +211,7 @@ export const RX_CONCURRENT_STRATEGIES: RxConcurrentStrategies = {
181
211
normal : normalStrategy ,
182
212
low : lowStrategy ,
183
213
idle : idleStrategy ,
184
- userVisible : postTaskUserVisibleStrategy ,
214
+ postTaskUserVisible : postTaskUserVisibleStrategy ,
215
+ postTaskUserBlocking : postTaskUserBlockingStrategy ,
216
+ postTaskBackground : postTaskBackgroundStrategy ,
185
217
} ;
0 commit comments