зеркало из https://github.com/mozilla/gecko-dev.git
a7666fd8fe
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 |
||
---|---|---|
.. | ||
test | ||
Action.cpp | ||
Action.h | ||
ActorChild.cpp | ||
ActorChild.h | ||
ActorUtils.h | ||
AutoUtils.cpp | ||
AutoUtils.h | ||
Cache.cpp | ||
Cache.h | ||
CacheChild.cpp | ||
CacheChild.h | ||
CacheOpChild.cpp | ||
CacheOpChild.h | ||
CacheOpParent.cpp | ||
CacheOpParent.h | ||
CacheParent.cpp | ||
CacheParent.h | ||
CacheStorage.cpp | ||
CacheStorage.h | ||
CacheStorageChild.cpp | ||
CacheStorageChild.h | ||
CacheStorageParent.cpp | ||
CacheStorageParent.h | ||
CacheStreamControlChild.cpp | ||
CacheStreamControlChild.h | ||
CacheStreamControlParent.cpp | ||
CacheStreamControlParent.h | ||
CacheTypes.ipdlh | ||
CacheWorkerHolder.cpp | ||
CacheWorkerHolder.h | ||
Connection.cpp | ||
Connection.h | ||
Context.cpp | ||
Context.h | ||
DBAction.cpp | ||
DBAction.h | ||
DBSchema.cpp | ||
DBSchema.h | ||
FileUtils.cpp | ||
FileUtils.h | ||
IPCUtils.h | ||
Manager.cpp | ||
Manager.h | ||
ManagerId.cpp | ||
ManagerId.h | ||
PCache.ipdl | ||
PCacheOp.ipdl | ||
PCacheStorage.ipdl | ||
PCacheStreamControl.ipdl | ||
PrincipalVerifier.cpp | ||
PrincipalVerifier.h | ||
QuotaClient.cpp | ||
QuotaClient.h | ||
ReadStream.cpp | ||
ReadStream.h | ||
SavedTypes.h | ||
StreamControl.cpp | ||
StreamControl.h | ||
StreamList.cpp | ||
StreamList.h | ||
TypeUtils.cpp | ||
TypeUtils.h | ||
Types.h | ||
moz.build |