- From: Domenic Denicola <domenic@domenicdenicola.com>
- Date: Wed, 16 Oct 2013 21:29:49 +0000
- To: Anne van Kesteren <annevk@annevk.nl>, 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>
From: whatwg-bounces@lists.whatwg.org [whatwg-bounces@lists.whatwg.org] on behalf of Anne van Kesteren [annevk@annevk.nl] > 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. It's worth noting that immediately-fulfilled promises are pretty fast, since promises use microtasks.
Received on Wednesday, 16 October 2013 21:30:31 UTC