Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
var tmp = require("./index.js");
|
||||
var Promise = require("bluebird"); // just for delay, this works with native promises
|
||||
// disposer
|
||||
tmp.withFile((path) => {
|
||||
console.log("Created at path", path);
|
||||
return Promise.delay(1000);
|
||||
}).then(() => {
|
||||
console.log("File automatically disposed");
|
||||
});
|
||||
Reference in New Issue
Block a user