Pass a disposable object into function and destroy it after the call
use(texture, (texture) => { // do something with texture}); Copy
use(texture, (texture) => { // do something with texture});
Pass a disposable object into function and destroy it after the call