Bug 1502118 - Fix threading documentation on GeckoResult. r=snorp.

Differential Revision: https://phabricator.services.mozilla.com/D10239

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Agi Sferro 2018-10-30 17:59:37 +00:00
Родитель 6091c88d08
Коммит e5460c7403
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -544,7 +544,8 @@ public class GeckoResult<T> {
public interface OnValueListener<T, U> {
/**
* Called when a {@link GeckoResult} is completed with a value. Will be
* called on the main thread.
* called on the same thread where the GeckoResult was created or on
* the {@link Handler} provided via {@link #withHandler(Handler)}.
*
* @param value The value of the {@link GeckoResult}
* @return Result used to complete the next result in the chain. May be null.
@ -560,8 +561,9 @@ public class GeckoResult<T> {
*/
public interface OnExceptionListener<V> {
/**
* Called when a {@link GeckoResult} is completed with an exception. Will be
* called on the main thread.
* Called when a {@link GeckoResult} is completed with an exception.
* Will be called on the same thread where the GeckoResult was created
* or on the {@link Handler} provided via {@link #withHandler(Handler)}.
*
* @param exception Exception that completed the result.
* @return Result used to complete the next result in the chain. May be null.