silverwolf-x's picture
download
raw
594 Bytes
import type { AsyncLocalStorage } from 'async_hooks'
/**
* Implementations provide a wrapping function that will provide the storage to
* async calls derived from the provided callback function.
*
* @param storage underlying storage object
* @param context context used to create the storage object
* @param callback function to call within the scope of the storage
* @returns the result of the callback
*/
export type WithStore<Store extends {}, Context extends {}> = <Result>(
storage: AsyncLocalStorage<Store>,
context: Context,
callback: (store: Store) => Result
) => Result

Xet Storage Details

Size:
594 Bytes
·
Xet hash:
26fdd9cc6e552d89c493270cb01bd1f441a86aa089b67e681016dddc713bfb39

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