Skip to content

Commit c386bdc

Browse files
committed
jsdoc
1 parent a050e41 commit c386bdc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cdk/table/coalesced-style-scheduler.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,22 @@
99
import {Injectable, NgZone} from '@angular/core';
1010
import {from, Observable} from 'rxjs';
1111

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+
*/
1219
@Injectable()
1320
export class CoalescedStyleScheduler {
1421
private _currentSchedule: Observable<void>|null = null;
1522

1623
constructor(private readonly _ngZone: NgZone) {}
1724

25+
/**
26+
* Schedules the specified task to run after the current microtask.
27+
*/
1828
schedule(task: () => unknown): void {
1929
this._createScheduleIfNeeded();
2030

0 commit comments

Comments
 (0)