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