Isiah Meadows (2017-01-06T00:51:17.000Z)
It'd be nice to have something like that reified into the language
somehow. I'll note that Bluebird's gotcha with `Promise.using`
multiple resources simultaneously is a huge issue, though, and it
should be avoided for anything standardized. (If one of them fail, the
rest should be closed either immediately or as soon as they are
available, to avoid resource leaks.)
-----

Isiah Meadows
me at isiahmeadows.com


On Mon, Jan 2, 2017 at 10:04 AM, Benjamin Gruenbaum
<benjamingr at gmail.com> wrote:
> And, on a similar note - a pattern has emerged in userland libraries all
> over:
> http://stackoverflow.com/questions/28915677/what-is-the-promise-disposer-pattern
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
forbes at lindesay.co.uk (2017-01-08T05:36:57.809Z)
It'd be nice to have something like that reified into the language
somehow. I'll note that Bluebird's gotcha with `Promise.using`
multiple resources simultaneously is a huge issue, though, and it
should be avoided for anything standardized. (If one of them fail, the
rest should be closed either immediately or as soon as they are
available, to avoid resource leaks.)