From 431731da40606bd15979f3c0231c5ffd37bb36b6 Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Fri, 19 Nov 2021 13:43:31 -0800 Subject: [PATCH] Mentioned that replies can be invoked on any thread now that that is supported. (flutter/engine#29816) --- .../android/io/flutter/plugin/common/BasicMessageChannel.java | 2 +- .../android/io/flutter/plugin/common/MethodChannel.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/BasicMessageChannel.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/BasicMessageChannel.java index b1f06cb80c..284df4f03f 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/BasicMessageChannel.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/BasicMessageChannel.java @@ -159,7 +159,7 @@ public final class BasicMessageChannel { * *

Handler implementations must reply to all incoming messages, by submitting a single reply * message to the given {@link Reply}. Failure to do so will result in lingering Flutter reply - * handlers. The reply may be submitted asynchronously. + * handlers. The reply may be submitted asynchronously and invoked on any thread. * *

Any uncaught exception thrown by this method, or the preceding message decoding, will be * caught by the channel implementation and logged, and a null reply message will be sent back diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java index 3c0149754f..795bd70ba0 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java @@ -165,8 +165,8 @@ public class MethodChannel { * *

Handler implementations must submit a result for all incoming calls, by making a single * call on the given {@link Result} callback. Failure to do so will result in lingering Flutter - * result handlers. The result may be submitted asynchronously. Calls to unknown or - * unimplemented methods should be handled using {@link Result#notImplemented()}. + * result handlers. The result may be submitted asynchronously and on any thread. Calls to + * unknown or unimplemented methods should be handled using {@link Result#notImplemented()}. * *

Any uncaught exception thrown by this method will be caught by the channel implementation * and logged, and an error result will be sent back to Flutter.