src/nodejs/jsasynchooks

    Dark Mode
Search:
Group by:
  Source   Edit

Example:

import src/nodejs/jsasynchooks
requireAsynchooks()
echo triggerAsyncId()
echo executionAsyncId()

Procs

func executionAsyncId(): cint {.importjs: "async_hooks.$1()", ...raises: [],
                                tags: [].}
https://nodejs.org/api/async_hooks.html#async_hooks_async_hooks_executionasyncid   Source   Edit
func importAsynchooks() {.importjs: "import * as async_hooks from \'async_hooks\'@",
                          ...raises: [], tags: [].}
Alias for import * as module_name from 'module_name';. Must be called once before using the module   Source   Edit
func requireAsynchooks() {.importjs: "const async_hooks = require(\'async_hooks\')@",
                           ...raises: [], tags: [].}
Alias for const module_name = require('module_name');. Must be called once before using the module   Source   Edit
func triggerAsyncId(): cint {.importjs: "async_hooks.$1()", ...raises: [], tags: [].}
https://nodejs.org/api/async_hooks.html#async_hooks_async_hooks_triggerasyncid   Source   Edit