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

Hi,
Quick IDL+Promises question. 

I have a method: 

interface ScreenOrientation {
    Promise<undefined> lock (OrientationLockType orientation);
}

Where in spec prose we eventually say:

"...resolve p with `undefined`." 

It was raised elsewhere that maybe this should be `Promise<void>` instead? What would be more idiomatic? Using void seems to make more sense then passing `undefined` to the resolver - as the arguments.length would be 0 instead of 1 (undefined).  

Received on Thursday, 14 August 2014 20:36:31 UTC