Internalize Continuation (#47540)

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

Continuation is only used inside RN, we should make it internal

changelog: [Android][Changed] Reduce visibility of Continuation to internal, although this interface wasn't being exposed in any public API

Reviewed By: javache

Differential Revision: D65738329

fbshipit-source-id: 6fb1b9e9a253eafad0f6eb1e4c1363d6254846da
This commit is contained in:
David Vacca 2024-11-11 07:03:00 -08:00 committed by Facebook GitHub Bot
parent b8337ebf97
commit 7b21b9e69c
2 changed files with 2 additions and 6 deletions

View File

@ -3862,10 +3862,6 @@ public final class com/facebook/react/runtime/hermes/HermesInstance : com/facebo
public final class com/facebook/react/runtime/hermes/HermesInstance$Companion {
}
public abstract interface class com/facebook/react/runtime/internal/bolts/Continuation {
public abstract fun then (Lcom/facebook/react/runtime/internal/bolts/Task;)Ljava/lang/Object;
}
public class com/facebook/react/runtime/internal/bolts/Task : com/facebook/react/interfaces/TaskInterface {
public static final field IMMEDIATE_EXECUTOR Ljava/util/concurrent/Executor;
public static final field UI_THREAD_EXECUTOR Ljava/util/concurrent/Executor;

View File

@ -15,6 +15,6 @@ package com.facebook.react.runtime.internal.bolts
*
* @see Task
*/
public interface Continuation<TTaskResult, TContinuationResult> {
@Throws(Exception::class) public fun then(task: Task<TTaskResult>): TContinuationResult?
internal interface Continuation<TTaskResult, TContinuationResult> {
@Throws(Exception::class) fun then(task: Task<TTaskResult>): TContinuationResult?
}