Update javadoc for ReactHost.destroy() method (#47741)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47741

Update javadoc for ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: shwanton

Differential Revision: D66215193

fbshipit-source-id: 836c8383f5bb2ffd14b46e498be74b6ed79b4402
This commit is contained in:
David Vacca 2024-11-19 22:28:00 -08:00 committed by Facebook GitHub Bot
parent e88974f199
commit 0eff2c5a22
2 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,8 @@ public interface ReactHost {
* @param reason describing why ReactHost is being destroyed (e.g. memory pressure) * @param reason describing why ReactHost is being destroyed (e.g. memory pressure)
* @param ex exception that caused the trigger to destroy ReactHost (or null) This exception will * @param ex exception that caused the trigger to destroy ReactHost (or null) This exception will
* be used to log properly the cause of destroy operation. * be used to log properly the cause of destroy operation.
* @param onDestroyFinished callback that will be called when React Native gets destroyed. * @param onDestroyFinished callback that will be called when React Native gets destroyed, the
* callback will run on a background thread.
* @return A task that completes when React Native gets destroyed. * @return A task that completes when React Native gets destroyed.
*/ */
public fun destroy( public fun destroy(

View File

@ -562,7 +562,8 @@ public class ReactHostImpl implements ReactHost {
* @param reason describing why ReactHost is being destroyed (e.g. memory pressure) * @param reason describing why ReactHost is being destroyed (e.g. memory pressure)
* @param ex exception that caused the trigger to destroy ReactHost (or null) This exception will * @param ex exception that caused the trigger to destroy ReactHost (or null) This exception will
* be used to log properly the cause of destroy operation. * be used to log properly the cause of destroy operation.
* @param onDestroyFinished callback that will be called when React Native gets destroyed. * @param onDestroyFinished callback that will be called when React Native gets destroyed, the
* callback will run on a background thread.
* @return A task that completes when React Native gets destroyed. * @return A task that completes when React Native gets destroyed.
*/ */
@NonNull @NonNull