chore: remove threading

This commit is contained in:
Percs 2024-10-13 00:49:46 -05:00
parent a3cb21a500
commit 70779ffe5b
8 changed files with 0 additions and 140 deletions

View file

@ -1,12 +1,10 @@
import { FakeServiceWorker } from "./fakesw";
import { swfetch } from "./fetch";
import { ScramjetThreadpool } from "./threadpool";
import type BareClient from "@mercuryworkshop/bare-mux";
export class ScramjetServiceWorker extends EventTarget {
client: BareClient;
config: typeof self.$scramjet.config;
threadpool: ScramjetThreadpool;
syncPool: Record<number, (val?: any) => void> = {};
synctoken = 0;
@ -19,8 +17,6 @@ export class ScramjetServiceWorker extends EventTarget {
super();
this.client = new self.$scramjet.shared.util.BareClient();
this.threadpool = new ScramjetThreadpool();
addEventListener("message", ({ data }: { data: MessageC2W }) => {
if (!("scramjet$type" in data)) return;