requestAnimationFrame
Signature - util.ts#L136
declare function requestAnimationFrameImplementation(
callback: (time: number) => void,
subscription?: Disposable,
): voidDisposable-based alternative to built-in requestAnimationFrame.
Parameters
| Parameter | Type | Description |
|---|---|---|
| callback | | The callback to schedule. This will be called with a time parameter. |
| subscription | | If this is disposed then the request will be cancelled. |