adopt
Adds a value and associated disposal callback as a resource to the stack.
Parameters
value
The value to add.
onDisposeAsync
The callback to use in place of a [Symbol.asyncDispose]() method. Will be invoked with value as the first parameter.