PythonMonkey v0.8.2 (dev)
|
Classes | |
class | Timeout |
Functions | |
function | _normalizeTimerArgs (handler, delayMs, additionalArgs) |
function | setTimeout (handler, delayMs=0,...args) |
function | clearTimeout (timeoutId) |
function | setImmediate (handler,...args) |
function | setInterval (handler, delayMs=0,...args) |
if (!globalThis.setTimeout) globalThis.setTimeout | |
Variables | |
const | internalBinding = require('internal-binding') |
const | |
const | clearImmediate = clearTimeout |
const | clearInterval = clearTimeout |
setTimeout | Timeout = Timeout |
exports | setTimeout = setTimeout |
exports | clearTimeout = clearTimeout |
exports | setImmediate = setImmediate |
exports | setInterval = setInterval |
function _normalizeTimerArgs | ( | handler, | |
delayMs, | |||
additionalArgs | |||
) |
Normalize the arguments to setTimeout
,setImmediate
or setInterval
{Function | | string} handler |
{number} | delayMs timeout milliseconds |
{any[]} | additionalArgs additional arguments to be passed to the handler |
@type {Function}
function clearTimeout | ( | timeoutId | ) |
Implement the clearTimeout
global function
{Timeout | | number} timeoutId |
if | ( | !globalThis. | setTimeout | ) |
function setImmediate | ( | handler, | |
args | |||
) |
Implement the setImmediate
global function
NON-STANDARD, for Node.js compatibility only.
{Function | | string} handler |
{any[]} | args additional arguments to be passed to the handler |
function setInterval | ( | handler, | |
delayMs = 0 , |
|||
args | |||
) |
Implement the setInterval
global function
{Function | | string} handler |
{number} | delayMs timeout milliseconds, use value of 0 if this is omitted |
{any[]} | args additional arguments to be passed to the handler |
function setTimeout | ( | handler, | |
delayMs = 0 , |
|||
args | |||
) |
Implement the setTimeout
global function
{Function | | string} handler |
{number} | delayMs timeout milliseconds, use value of 0 if this is omitted |
{any[]} | args additional arguments to be passed to the handler |
exports clearImmediate = clearTimeout |
Implement the clearImmediate
global function
NON-STANDARD, for Node.js compatibility only. @alias to clearTimeout
exports clearInterval = clearTimeout |
Implement the clearInterval
global function @alias to clearTimeout
exports clearTimeout = clearTimeout |
const |
function declare internalBinding = require('internal-binding') |
internal binding helper for the setTimeout
/setInterval
global functions
UNSAFE, does not perform argument type checks
repeat | The call is to setInterval if true |
internal binding helper for the clearTimeout
global function
internal binding helper for if a timer object has been ref'ed
internal binding helper for ref'ing the timer
internal binding helper for unref'ing the timer
Retrieve debug info inside the timer for the WTFPythonMonkey tool
Retrieve the debug info for all timers that are still ref'ed
exports setImmediate = setImmediate |
exports setInterval = setInterval |
exports setTimeout = setTimeout |