When is a Promise not good enough, and I need a Web Worker?


Episode Artwork
1.0x
0% played 00:00 00:00
Jan 17 2025 5 mins   8

I just finished Expensive Calculations in React Performance. Why do we need a Web Worker instead of just wrapping the long-running function in a Promise that resolves when the function completes?




When is a Promise not good enough, and I need a Web Worker?