We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be374b commit 268c392Copy full SHA for 268c392
src/cdk/table/coalesced-style-scheduler.ts
@@ -9,12 +9,22 @@
9
import {Injectable, NgZone} from '@angular/core';
10
import {from, Observable} from 'rxjs';
11
12
+/**
13
+ * Allows grouping up CSSDom mutations after the current execution context.
14
+ * This can significantly improve performance when separate consecutive functions are
15
+ * reading from the CSSDom and then mutating it.
16
+ *
17
+ * @docs-private
18
+ */
19
@Injectable()
20
export class CoalescedStyleScheduler {
21
private _currentSchedule: Observable<void>|null = null;
22
23
constructor(private readonly _ngZone: NgZone) {}
24
25
+ /**
26
+ * Schedules the specified task to run after the current microtask.
27
28
schedule(task: () => unknown): void {
29
this._createScheduleIfNeeded();
30
0 commit comments