W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

Re: [whatwg] Canvas in workers

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 16 Oct 2013 22:23:50 +0100
Message-ID: <CADnb78iSb8VS+XaVdcSimypL1P5v6m0s0n-je_GOd1Rr5a+PAg@mail.gmail.com>
To: Kenneth Russell <kbr@google.com>
Cc: Justin Novosad <junov@google.com>, WHAT Working Group <whatwg@whatwg.org>, Kyle Huey <me@kylehuey.com>, Robert O'Callahan <robert@ocallahan.org>
On Wed, Oct 16, 2013 at 9:23 PM, Kenneth Russell <kbr@google.com> wrote:
> While the Promise returned from createImageBitmap(HTMLCanvasElement)
> can be fulfilled immediately, is it worth introducing a special
> overload with a different return type?

Well if you want a synchronous method a promise is not going to cut
it. However, please do not overload the existing method and actually
provide a new one. Having one method that can be used both synchronous
and asynchronous depending on its argument would be terrible.


-- 
http://annevankesteren.nl/
Received on Wednesday, 16 October 2013 21:24:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:12 UTC