Returns the AWS CRT version
Returns true if this script is running in a browser
Returns true if this script is running under nodejs
If the AWS_CRT_MEMORY_TRACING
is environment variable is set to 1 or 2,
will return the native memory usage in bytes. Otherwise, returns 0.
The total allocated native memory, in bytes.
Dumps outstanding native memory allocations. If the AWS_CRT_MEMORY_TRACING
environment variable is set to 1 or 2, will dump all active native memory to
the console log.
Returns the package information for aws-crt-nodejs
Use this function to create a resource in an async context. This will make sure the resources are cleaned up before returning.
Example:
await using(res = new SomeResource(), async (res) => {
res.do_the_thing();
});
Generated using TypeDoc
A module containing miscellaneous functionality for error reporting, platform functionality, and package-wide logic.