flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS]Promises
Date Thu, 17 Nov 2016 21:46:19 GMT

On 11/17/16, 11:21 AM, "Harbs" <harbs.lists@gmail.com> wrote:

>> It looks like Promise does implement Ithenable.
>Yes. I know.
>I did not word that very well. I’m not sure what I meant. I was probably
>talking about the AS3 implementation. I’m currently thinking that Promise
>should implement IPromise which inherits from IThenable and ICatchable.
>Is there a way of declaring static functions in interfaces (i.e.
>IPromise.resolve(), IPromise.reject(), IPromise.all())?

Static functions?  Why wouldn't they be instance methods.  Interfaces in
AS3 can only handle public instance functions.

>I’m not sure what you mean about not using es6. The definitions seem to
>be picked up from there.

Interesting.  I thought we weren't using ES6.  Does that mean that to use
Promise in the browser we have to do something to turn on ES6 support?


View raw message