I am working on a javascript project which initially had all complex logic written in JS. However it was very slow so we had ported all the complex logic to golang now due to architectural constraints we cannot call APIs of the golang, so we moved towards wasm where you build your golang code into a wasm file and call it from your js code and hence eliminating API calls.

Now everything was working fine until we have received some complex object which takes a lot of time if you execute through wasm but takes only few seconds if you run it through golang. So my question is can I implement multithreading into wasm file loaded in browser?