gecko-dev/services/fxaccounts/rust-bridge
Lina Cambridge faf2fd15e4 Bug 1639018 - Change `TaskRunnable::dispatch` to take owned runnables. r=froydnj
This matches how the `Dispatch(already_AddRefed<nsIRunnable>)`
overloads work in C++: `Dispatch` takes ownership of the runnable, and
leaks it if dispatch fails—because the thread manager is shutting down,
for instance. This avoids a race where a runnable can be released on
either the owning or target thread.

Rust doesn't allow arbitrary `Self` types yet (see
rust-lang/rust#44874), so we need to change `dispatch` and
`dispatch_with_options` to be associated methods.

Differential Revision: https://phabricator.services.mozilla.com/D75858
2020-05-20 20:54:49 +00:00
..
firefox-accounts-bridge Bug 1639018 - Change `TaskRunnable::dispatch` to take owned runnables. r=froydnj 2020-05-20 20:54:49 +00:00
FirefoxAccountsBridge.h Bug 1631630 p2 - Implement FxAccounts rust-bridge. r=lina,rfkelly 2020-05-16 01:07:31 +00:00
components.conf Bug 1631630 p2 - Implement FxAccounts rust-bridge. r=lina,rfkelly 2020-05-16 01:07:31 +00:00
moz.build Bug 1631630 p2 - Implement FxAccounts rust-bridge. r=lina,rfkelly 2020-05-16 01:07:31 +00:00
mozIFirefoxAccountsBridge.idl Bug 1631630 p2 - Implement FxAccounts rust-bridge. r=lina,rfkelly 2020-05-16 01:07:31 +00:00