silverwolf-x's picture
download
raw
363 Bytes
export function sleep(ms: number) {
return new Promise((res) => setTimeout(res, ms))
}
export class Deferred<T> {
declare promise: Promise<T>
declare resolve: (v?: T | PromiseLike<T>) => void
declare reject: (r?: any) => void
constructor() {
this.promise = new Promise((res, rej) => {
this.resolve = res
this.reject = rej
})
}
}

Xet Storage Details

Size:
363 Bytes
·
Xet hash:
90f628d63126530cf8d35cc7bf7a7f60bf1bcdbde02a399b35b27577686eb086

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