Execute functions in the background, both on desktop/native and web/wasm. On desktop/native, threads are used. On web/wasm, webworkers are used.