Mentioned that replies can be invoked on any thread now that that is supported. (flutter/engine#29816)

This commit is contained in:
gaaclarke
2021-11-19 13:43:31 -08:00
committed by GitHub
parent 6e7526c40b
commit 431731da40
2 changed files with 3 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ public final class BasicMessageChannel<T> {
*
* <p>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.
*
* <p>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

View File

@@ -165,8 +165,8 @@ public class MethodChannel {
*
* <p>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()}.
*
* <p>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.