mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
54de4abb26
We have `useAutoTick` in our private shared utils.
(cherry picked from commit 36474f7011)
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
export async function timeout(ms?: number): Promise<void> {
|
|
return new Promise((resolve) => {
|
|
setTimeout(resolve, ms);
|
|
});
|
|
}
|