mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
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:
parent
b8337ebf97
commit
7b21b9e69c
@ -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;
|
||||
|
@ -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?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user