gecko-dev/toolkit
Nika Layzell a7666fd8fe Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.

Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.

This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.

MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
..
components Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm 2017-11-20 17:55:32 -05:00
content Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
crashreporter Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop 2017-11-09 16:36:57 +00:00
forgetaboutsite Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop 2017-11-09 16:36:57 +00:00
library No bug - Revendor rust dependencies 2017-11-16 05:54:20 +00:00
locales Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
modules Bug 1417653 - clean up a few moz.build files that have typos. r=gbrown 2017-11-16 08:56:51 -05:00
mozapps Bug 1408044 - fix miscellaneous tests that depended on about: existing, r=dao 2017-11-15 17:19:33 +00:00
pluginproblem Bug 1409148 - Add dynamic sizing on the plugin overlay. r=dthayer,johannh 2017-11-10 14:05:04 -02:00
profile Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop 2017-11-09 16:36:57 +00:00
system Bug 1412980 - Remove nsPackageKitService as it is unused. r=froydnj 2017-10-30 17:17:49 +00:00
themes Bug 1418494 - Flatten menucaption-inmenulist into menucaption;r=mconley 2017-11-20 10:05:35 -08:00
xre Bug 1417289 - Disable failing part of TestDllInterceptor on code coverage builds. r=dmajor 2017-11-17 10:32:50 +01:00
.eslintrc.js
moz.build
moz.configure Bug 1417689 - Move elfhack related things to python configure. r=nalexander 2017-11-16 09:37:31 +09:00
nss.configure
toolkit.mozbuild Bug 1417309 - Move some definitions from top-level moz.build to application-specific moz.build files. r=nalexander 2017-11-16 08:37:32 +09:00