download
raw
451 Bytes
'use strict'
const { register, unregister } = require('../..')
const assert = require('assert')
function setup () {
const obj = { foo: 'bar' }
register(obj, shutdown)
setImmediate(function () {
unregister(obj)
unregister(obj) // twice, this should not throw
})
}
let shutdownCalled = false
function shutdown (obj) {
shutdownCalled = true
}
setup()
process.on('exit', function () {
assert.strictEqual(shutdownCalled, false)
})

Xet Storage Details

Size:
451 Bytes
·
Xet hash:
58c1263184354ca2ea279b671d1db59e0f396315ce2332ff49d4752661e0d40a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.