Documentation / @warp-drive/experiments / data-worker / DataWorker
Class: DataWorker
Defined in: data-worker/worker.ts:10
Constructors
Constructor
ts
new DataWorker(UserStore, options?): DataWorker;Defined in: data-worker/worker.ts:18
Parameters
UserStore
typeof Store
options?
persisted
boolean
scope?
string
Returns
DataWorker
Methods
abortRequest()
ts
abortRequest(event): void;Defined in: data-worker/worker.ts:86
Parameters
event
AbortEventData
Returns
void
initialize()
ts
initialize(): void;Defined in: data-worker/worker.ts:31
Returns
void
request()
ts
request(event): Promise<void>;Defined in: data-worker/worker.ts:96
Parameters
event
RequestEventData
Returns
Promise<void>
setupThread()
ts
setupThread(thread, port): void;Defined in: data-worker/worker.ts:65
Parameters
thread
string
port
Returns
void
Properties
isSharedWorker
ts
isSharedWorker: boolean;Defined in: data-worker/worker.ts:14
options
ts
options: object;Defined in: data-worker/worker.ts:15
persisted
ts
persisted: boolean;scope?
ts
optional scope: string;pending
ts
pending: Map<string, Map<number, Future<unknown>>>;Defined in: data-worker/worker.ts:13
storage
ts
storage: DocumentStorage;Defined in: data-worker/worker.ts:16
store
ts
store: Store;Defined in: data-worker/worker.ts:11
threads
ts
threads: Map<string, MessagePort>;Defined in: data-worker/worker.ts:12