[whatwg] Canvas in workers

Anne van Kesteren annevk at annevk.nl
Wed Oct 16 14:23:50 PDT 2013


On Wed, Oct 16, 2013 at 9:23 PM, Kenneth Russell <kbr at 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/



More information about the whatwg mailing list