API reference › @evolu/common › local‑first/Shared › initSharedWorker
function initSharedWorker(
self: SharedWorkerSelf<SharedWorkerInput, SharedWorkerOutput>,
): Task<AsyncDisposableStack, never, SharedWorkerDeps>;
Defined in: packages/common/src/local-first/Shared.ts:1800
Initializes the platform-agnostic Evolu SharedWorker.
The worker holds the build lock until it is disposed, so a platform connects
every createEvoluDeps call in a JS runtime to one worker, as React Native
does; see Builds.