timer
timer: {
clearTimeout: ((id) => void);
setTimeout: ((cb, timeout) => number);
}
Type declaration
clearTimeout: ((id) => void)
setTimeout: ((cb, timeout) => number)
- (cb, timeout): number
Parameters
cb: (() => void)
timeout: number
Returns number
An interface describing all the platform specific APIs Glean.js needs to access.
Each supported platform must provide an implementation of this interface.