RE: Promise<void> or Promise<undefined>?, was Re: RfC: pre-LC version of Screen Orientation; deadline August 18

On August 14, 2014 at 5:01:24 PM, Marcos Caceres (marcos@marcosc.com) wrote:
> > I don't feel strongly about it either. To me, it's probably more  
> clear to just say "resolve p", because it doesn't imply that one  
> is passing an actual thing to the resolver (where "resolve p"*

* Sorry, here I meant "resolve p with `undefined`"
   
> looks like, in a JS implementation of WebIDL: `resolver(undefined)`  
> even if equivalent to just calling `resolver()`). I guess generally,  
> unless one is resolving with something, maybe it's best to just  
> exclude the "" altogether, as it's should be implied to  
> be void.

Received on Thursday, 14 August 2014 21:06:37 UTC