Mentioned that replies can be invoked on any thread now that that is supported. (flutter/engine#29816)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user