[whatwg] Proposal: createImageBitmap should return a "Promise" instead of using a callback

Anne van Kesteren annevk at annevk.nl
Thu Jun 20 18:44:21 PDT 2013

On Thu, Jun 20, 2013 at 11:08 PM, Justin Novosad <junov at google.com> wrote:
> I agree it would be nicer, but it seems less consistent with other existing
> APIs.

The factory methods we have thus far should probably not be taken as
precedent. Almost nobody likes them. URL.createObjectURL() is somewhat
like this, although it returns a string and not a URL object.


More information about the whatwg mailing list