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

Need guidance on promise-returning methods on a stateful object

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Fri, 16 Oct 2015 14:20:48 +0000
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <A222C88B6882744D8D4B9681B3158890240EEDDA@ESESSMB307.ericsson.se>

In the WebRTC 1.0 spec we have some promise-returning methods on a 
stateful object (RTCPeerConnection). I would like guidance on how to 
behave when the instance, on which a method is called, goes into a 
closed state while an async operation is doing its work. When done, 
should the promise be rejected, or should we just leave it pending. Note 
that the script will be informed about the state change through other 


Received on Friday, 16 October 2015 14:21:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC