From 79b3bc05d6de520f1df73face1744ae3d8be0bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 11 Feb 2020 10:04:59 +0100 Subject: workers: basic event loop (#3828) * establish basic event loop for workers * make "self.close()" inside worker * remove "runWorkerMessageLoop() - instead manually call global function in Rust when message arrives. This is done in preparation for structured clone * refactor "WorkerChannel" and use distinct structs for internal and external channels; "WorkerChannelsInternal" and "WorkerHandle" * move "State.worker_channels_internal" to "Worker.internal_channels" * add "WorkerEvent" enum for child->host communication; currently "Message(Buf)" and "Error(ErrBox)" variants are supported * add tests for nested workers * add tests for worker throwing error on startup --- cli/js/lib.deno.worker.d.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'cli/js/lib.deno.worker.d.ts') diff --git a/cli/js/lib.deno.worker.d.ts b/cli/js/lib.deno.worker.d.ts index 07955345c..3311d9457 100644 --- a/cli/js/lib.deno.worker.d.ts +++ b/cli/js/lib.deno.worker.d.ts @@ -37,7 +37,6 @@ declare const postMessage: typeof __workerMain.postMessage; declare namespace __workerMain { export let onmessage: (e: { data: any }) => void; export function postMessage(data: any): void; - export function getMessage(): Promise; export function close(): void; export const name: string; } -- cgit v1.2.3