Number of Web Workers Limit

后端 未结 4 545
甜味超标
甜味超标 2020-12-12 11:45

PROBLEM

I\'ve discovered that there is a limit on the number of Web Workers that can be spawned by a browser.

Example

4条回答
  •  我在风中等你
    2020-12-12 12:11

    The way you're chaining your Workers in the solution #1 impeach the garbage collector to terminate Worker instances because you still have a reference to them in the scope of your onmessage callback function.

    Give a try with this code:

    
    
    
    

提交回复
热议问题