Java Code Examples for com.facebook.react.bridge.queue.ProxyQueueThreadExceptionHandler

The following are top voted examples for showing how to use com.facebook.react.bridge.queue.ProxyQueueThreadExceptionHandler. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: ReactNativeSignatureExample   File: WebWorkers.java   View source code 5 votes vote down vote up
/**
 * Creates a new MessageQueueThread for a background web worker owned by the JS thread with the
 * given MessageQueueThread.
 */
@DoNotStrip
public static MessageQueueThread createWebWorkerThread(int id, MessageQueueThread ownerThread) {
  return MessageQueueThreadImpl.startNewBackgroundThread(
      "web-worker-" + id,
      new ProxyQueueThreadExceptionHandler(ownerThread));
}
 
Example 2
Project: react-native-ibeacon-android   File: WebWorkers.java   View source code 5 votes vote down vote up
/**
 * Creates a new MessageQueueThread for a background web worker owned by the JS thread with the
 * given MessageQueueThread.
 */
@DoNotStrip
public static MessageQueueThread createWebWorkerThread(int id, MessageQueueThread ownerThread) {
  return MessageQueueThreadImpl.startNewBackgroundThread(
      "web-worker-" + id,
      new ProxyQueueThreadExceptionHandler(ownerThread));
}
 
Example 3
Project: react-native-box-loaders   File: WebWorkers.java   View source code 5 votes vote down vote up
/**
 * Creates a new MessageQueueThread for a background web worker owned by the JS thread with the
 * given MessageQueueThread.
 */
@DoNotStrip
public static MessageQueueThread createWebWorkerThread(int id, MessageQueueThread ownerThread) {
  return MessageQueueThreadImpl.startNewBackgroundThread(
      "web-worker-" + id,
      new ProxyQueueThreadExceptionHandler(ownerThread));
}