W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2015

RE: Need guidance on promise-returning methods on a stateful object

From: Domenic Denicola <d@domenic.me>
Date: Mon, 19 Oct 2015 19:59:14 +0000
To: Jan-Ivar Bruaroey <jib@mozilla.com>, Adam Bergkvist <adam.bergkvist@ericsson.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <CY1PR0501MB1369612296F4EFB5BC0272F6DF3A0@CY1PR0501MB1369.namprd05.prod.outlook.com>
From: Jan-Ivar Bruaroey [mailto:jib@mozilla.com]

> (Jumping in. Adam, please correct me if I mess up the answers.)

Based on these answers, it seems like leaving it pending forever is probably the right way to go. In the future, we're hoping to add a third "canceled" state to promises, which might match what you're looking for here. But until then, forever-pending would make sense to me.
Received on Monday, 19 October 2015 19:59:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 19 October 2015 19:59:45 UTC