1
0
Fork 0
js-utils/docs/api/js-utils.asynctracker.md

1.4 KiB

Home > @apextoaster/js-utils > AsyncTracker

AsyncTracker class

Async resource tracker using node's internal hooks.

This probably won't work in a browser. It does not hold references to the resource, to avoid leaks. Adapted from https://gist.github.com/boneskull/7fe75b63d613fa940db7ec990a5f5843#file-async-dump-js

Signature:

export declare class AsyncTracker 

Constructors

Constructor Modifiers Description
(constructor)() Constructs a new instance of the AsyncTracker class

Properties

Property Modifiers Type Description
filter Optional<StackFilter>
size number

Methods

Method Modifiers Description
clear()
disable()
dump()
enable()
getStack()