Does the electron framework allow multi-threading through web workers?

前端 未结 4 744
天命终不由人
天命终不由人 2020-12-30 02:22

I am having a hard time googling how I would do multi-threading if I made an electron app. Would it be with web workers?

4条回答
  •  失恋的感觉
    2020-12-30 03:08

    Check out Electron Edge. It enables you to run .NET code and node.js in a single process (no IPC needed, better performance). This means you can leverage .NET's multi-threading model with the single-threadedness of node.js.

    It will run on Linux, Mac and Windows, thanks to .NET Core.

    https://github.com/kexplo/electron-edge

提交回复
热议问题