For that we would have to implement Promise via IDL. Definitely possible. All you need is a bit IDL and some JS that implements it. It would be a lot slower than the jsm since it wraps into C++ objects that call into JS, but in most cases that doesn't really matter.

Andreas

janjongb...@gmail.com wrote:
Hi,

 From code I can use Cu.import("resource://gre/modules/Promise.jsm"); to use 
promises. But is it possible to have a promise as a return type in my .idl file (b2g)?

Something like Promise blah(); won't just work and I'm a bit lost :-)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to