Reducing visibility of SimpleSettableFuture (#47438)

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

As part of sustainability week effort for switching to `internal` here:
https://fb.workplace.com/groups/251759413609061/permalink/872342228217440/

Reducing visibility of SimpleSettableFuture from `public` to `internal`

Changelog:
[Android] [Breaking] - Stable API - Make SimpleSettableFuture internal

Reviewed By: javache

Differential Revision: D65502193

fbshipit-source-id: 4bdd9b43684c8bc075271d76856ef848c52e6b12
This commit is contained in:
Arushi Kesarwani
2024-11-06 10:26:16 -08:00
committed by Facebook GitHub Bot
parent 17c164621d
commit 3dec672398
2 changed files with 1 additions and 14 deletions
@@ -1907,19 +1907,6 @@ public final class com/facebook/react/common/build/ReactBuildConfig {
public static final field IS_INTERNAL_BUILD Z
}
public final class com/facebook/react/common/futures/SimpleSettableFuture : java/util/concurrent/Future {
public fun <init> ()V
public fun cancel (Z)Z
public fun get ()Ljava/lang/Object;
public fun get (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
public final fun getOrThrow ()Ljava/lang/Object;
public final fun getOrThrow (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
public fun isCancelled ()Z
public fun isDone ()Z
public final fun set (Ljava/lang/Object;)V
public final fun setException (Ljava/lang/Exception;)V
}
public abstract interface class com/facebook/react/common/mapbuffer/MapBuffer : java/lang/Iterable, kotlin/jvm/internal/markers/KMappedMarker {
public static final field Companion Lcom/facebook/react/common/mapbuffer/MapBuffer$Companion;
public abstract fun contains (I)Z
@@ -17,7 +17,7 @@ import java.util.concurrent.TimeoutException
* A super simple Future-like class that can safely notify another Thread when a value is ready.
* Does not support canceling.
*/
public class SimpleSettableFuture<T> : Future<T?> {
internal class SimpleSettableFuture<T> : Future<T?> {
private val readyLatch = CountDownLatch(1)
private var result: T? = null