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

Justin Novosad junov at google.com
Thu Jun 20 07:08:13 PDT 2013


On Wed, Jun 19, 2013 at 10:18 PM, Anne van Kesteren <annevk at annevk.nl>wrote:

>
> I think something like
>
> interface ImageBitmap {
>   static Promise create(ImageBitmapSource image, optional long sx,
> long sy, long sw, long sh);
> };
>
> would be much nicer.
>
>
I agree it would be nicer, but it seems less consistent with other existing
APIs.


>
> --
> http://annevankesteren.nl/
>



More information about the whatwg mailing list