mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Fix cxxbridge usage of SettableFuture
Reviewed By: mhorowitz Differential Revision: D2759591 fb-gh-sync-id: 920b4a5c934c1bd9d196ccbeec0799a54001b85d
This commit is contained in:
parent
e6d498b99b
commit
12bec39da1
@ -10,8 +10,10 @@
|
||||
package com.facebook.react.bridge.queue;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
import android.os.Looper;
|
||||
|
||||
@ -170,8 +172,8 @@ import com.facebook.react.common.futures.SimpleSettableFuture;
|
||||
name,
|
||||
simpleSettableFuture.get(5000, TimeUnit.MILLISECONDS),
|
||||
exceptionHandler);
|
||||
} catch (Throwable t) {
|
||||
throw new RuntimeException(t);
|
||||
} catch (InterruptedException | ExecutionException | TimeoutException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user