sindresorhus / p-map

Map over promises concurrently
MIT License
1.26k stars 57 forks source link

Memory leak when using abort signals #75

Open dbas-dn opened 1 month ago

dbas-dn commented 1 month ago

We have encountered a memory leak issue. After an extensive search for the source of the leak, it was found that it occurred in pMap. Upon reviewing the source code of your package, I discovered that you subscribe to the AbortSignal event but do not unsubscribe from it, which causes the memory leak.

sindresorhus commented 1 month ago

// @jopemachine