Function
postMessage
(message: OpfsWorkerMessage, transferables?: ReadonlyArray<any>)
Source from the content-addressed store, hash-verified
| 282 | const worker = yield* options.worker |
| 283 | const port = "port" in worker ? worker.port : worker |
| 284 | const postMessage = (message: OpfsWorkerMessage, transferables?: ReadonlyArray<any>) => |
| 285 | port.postMessage(message, transferables as any) |
| 286 | |
| 287 | yield* Scope.addFinalizer(scope, Effect.sync(() => postMessage(["close"]))) |
| 288 | |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…