Skip to content

Commit

Permalink
Internalize Continuation (#47540)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 11, 2024
1 parent b8337eb commit 7b21b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}

0 comments on commit 7b21b9e

Please sign in to comment.