From a66218d457859fc3498db9fbc61228c74f490cc2 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 18 Aug 2021 15:19:22 +0200 Subject: fix(runtime): event loop panics in classic workers (#11756) Classic worker scripts are now executed in the context of a Tokio runtime. This does mean we can not spawn more tokio runtimes in "op_worker_sync_fetch". We instead spawn a new thread there, that can create a new Tokio runtime that we can use to block the worker thread. --- cli/tests/testdata/classic_workers_event_loop.js.out | 1 + 1 file changed, 1 insertion(+) create mode 100644 cli/tests/testdata/classic_workers_event_loop.js.out (limited to 'cli/tests/testdata/classic_workers_event_loop.js.out') diff --git a/cli/tests/testdata/classic_workers_event_loop.js.out b/cli/tests/testdata/classic_workers_event_loop.js.out new file mode 100644 index 000000000..19f86f493 --- /dev/null +++ b/cli/tests/testdata/classic_workers_event_loop.js.out @@ -0,0 +1 @@ +done -- cgit v1.2.3