PythonMonkey: python/pythonmonkey/builtin_modules/internal-binding.d.ts File Reference
- Date
- June 2023
- Copyright
- Copyright (c) 2023 Distributive Corp.
◆ internalBinding()
| function declare internalBinding | ( | namespace:"utils" | ) |
Note: internalBinding APIs are generally unsafe as they do not perform argument type checking, etc. Argument checking should be done on the JavaScript side.
Get the promise state (fulfilled/rejected/pending) and result (either fulfilled resolution or rejection reason)
Get the proxy target object and handler
- Returns
undefinedif it's not a proxy
internal binding helper for the setTimeout/setInterval global functions
UNSAFE, does not perform argument type checks
- Parameters
-
repeat The call is to setIntervalif true
- Returns
- timeoutId
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
◆ export
◆ TimerDebugInfo
declare type TimerDebugInfo = object