Buckets:
| export function createUpdaterSubscriptions() { | |
| const subscriptions = new Map<number, () => void>() | |
| const remove = (id: number) => { | |
| subscriptions.get(id)?.() | |
| subscriptions.delete(id) | |
| } | |
| return { | |
| set(id: number, unsubscribe: () => void) { | |
| remove(id) | |
| subscriptions.set(id, unsubscribe) | |
| }, | |
| delete: remove, | |
| clear() { | |
| subscriptions.forEach((unsubscribe) => unsubscribe()) | |
| subscriptions.clear() | |
| }, | |
| } | |
| } | |
Xet Storage Details
- Size:
- 459 Bytes
- Xet hash:
- d25572ab84068dbc4a275fae51e9e73c13b61f389b3e8cc3db717578d1b6f655
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.