Skip to content

Commit

Permalink
Reduce visibility of ReactHost.destroy() method
Browse files Browse the repository at this point in the history
Summary:
This diff reduces the visibility of ReactHost.destroy() method

changelog: [internal] internal

Reviewed By: luluwu2032

Differential Revision: D46293388

fbshipit-source-id: cee5ee77dbb82969751b1d71f0566a26c58ca7c4
  • Loading branch information
mdvacca committed Jun 5, 2023
1 parent 339d2eb commit 3f2b3f9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1215,12 +1215,12 @@ private Task<ReactInstance> new_getOrCreateReloadTask(String reason) {
* Entrypoint to destroy the ReactInstance. If the ReactInstance is reloading, will wait until
* reload is finished, before destroying.
*
* @param reason {@link String} describing why ReactHost is being destroyed (e.g. memmory
* pressure)
* @param ex {@link Exception} exception that caused the trigger to destroy ReactHost (or null)
* This exception will be used to log properly the cause of destroy operation.
* @return A task that completes when React Native gets destroyed.
*/
public Future<Void> destroy(String reason) {
return destroy(reason, null);
}

public Future<Void> destroy(String reason, @Nullable Exception ex) {
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
final String method = "destroy()";
Expand Down

0 comments on commit 3f2b3f9

Please sign in to comment.