node-osmosis
node-osmosis copied to clipboard
It's easy to introduce memory leaks into your app with osmosis
It seems it's super easy to introduce memory leaks into your app with osmosis by writing things like this and forgetting to add a done()
call. Why not clean this up when it goes out of scope?
function runQuery(sku) {
return new Promise((resolve, reject) => {
const url = `http://uk.farnell.com/${sku}`
osmosis.get(url)
.set({image_url: '#productMainImage @src'})
.data(resolve)
})
}
^ agreed. The behavior to just hang is odd