export type TaskID = number ; export function read ( callback ) { return requestAnimationFrame ( callback ) ; } export function write ( callback ) { return requestAnimationFrame ( callback ) ; } export function clear ( taskID ) { return cancelAnimationFrame ( taskID ) ; }