Skip to main content

WorkerStorageTransport

Web Worker based storage transport. Proxies storage operations to a dedicated worker thread for high performance and isolation.

TypeScriptexample.ts
import { WorkerStorageTransport } from '@angular-helpers/storage'

# Methods

MethodSignatureReturnsDescription
readread<T>(key: string, options?: StorageSignalOptions): Promise<T | undefined>Promise<T | undefined>Sends a RPC read request to the background storage worker.
writewrite<T>(key: string, data: T, options?: StorageSignalOptions): Promise<void>Promise<void>Sends a RPC write request to the background storage worker with zero-copy support.
deletedelete(key: string, options?: StorageSignalOptions): Promise<void>Promise<void>Sends a RPC delete request to the background storage worker.
LCP N/A
CLS N/A
INP N/A