Also sprach Joshua Cranmer:

> The problem with MozPromise is that it doesn't integrate well if you use 
> XPIDL interfaces, so you have this annoying issue that if you want to use 
> XPIDL integration, you have to use mozilla::dom::Promise, which is annoying 
> to use from C++. A third wrinkle, especially now that async functions has 
> landed in Rust, is if you want to try to use std::future::Future in Rust, 
> which isn't going to convert terribly well to either form.

In this context it should also be mentioned that the Rust XPCOM bindings do not 
support DOM promises quite yet:

        https://bugzilla.mozilla.org/show_bug.cgi?id=1512319

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to