From 0049d4e50c9dd945f25f69b08b08fbf492001f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 4 Nov 2019 16:38:52 +0100 Subject: Refactor Worker and ThreadSafeState (#3242) * Split ThreadSafeState into State and GlobalState. State is a "local" state belonging to "Worker" while "GlobalState" is state shared by whole program. * Update "Worker" and ops to use "GlobalState" where applicable * Move and refactor "WorkerChannels" resource --- cli/js/workers.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'cli/js') diff --git a/cli/js/workers.ts b/cli/js/workers.ts index 281fe619f..37061063f 100644 --- a/cli/js/workers.ts +++ b/cli/js/workers.ts @@ -65,7 +65,6 @@ export function postMessage(data: any): void { export async function getMessage(): Promise { log("getMessage"); const res = await sendAsync(dispatch.OP_WORKER_GET_MESSAGE); - if (res.data != null) { return decodeMessage(new Uint8Array(res.data)); } else { -- cgit v1.2.3