react-native-macos/packages
David Vacca fdfa012dae Introduce BoltsFutureTask class to avoid leaking bolts.Task into ReactHost API (#37744)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37744

This diff introduces the new generic class BoltsFutureTask<> that will be used by ReactHost to expose async task in its API.
The goal of BoltsFutureTask is to avoid leadking the bolts.Task dependency into the ReactHost API.

Public methods of this class follow the spec defined in the Future interface, see: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html. I didn't add javadocs to avoid duplicated documentation with Future and also
becuase this is private class.

Task Cancellation follows the patters defined in bolts documentation: https://github.com/BoltsFramework/Bolts-Android#cancelling-tasks

changelog: [internal] internal

Reviewed By: NickGerleman

Differential Revision: D46170466

fbshipit-source-id: eed92584bcd3ff0145e7cbb5d735139fbb6b0f33
2023-06-06 17:43:26 -07:00
..
assets Refactor: JS `substr()` is deprecated, using `slice()` instead (#37136) 2023-05-02 11:28:56 -07:00
babel-plugin-codegen Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
eslint-config-react-native bump @babel/* packages (#35787) 2023-05-18 14:05:38 -07:00
eslint-plugin-react-native Rename directory "eslint-config-react-native-community" (#37347) 2023-05-10 15:46:34 -07:00
eslint-plugin-specs bump @babel/* packages (#35787) 2023-05-18 14:05:38 -07:00
hermes-inspector-msggen bump @babel/* packages (#35787) 2023-05-18 14:05:38 -07:00
metro-config Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
normalize-color Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
polyfills Refactor: JS `substr()` is deprecated, using `slice()` instead (#37136) 2023-05-02 11:28:56 -07:00
react-native Introduce BoltsFutureTask class to avoid leaking bolts.Task into ReactHost API (#37744) 2023-06-06 17:43:26 -07:00
react-native-bots Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
react-native-codegen Add function `emitMixedProp` to parser-primitives (#37608) 2023-06-06 02:31:51 -07:00
react-native-codegen-typescript-test bump @babel/* packages (#35787) 2023-05-18 14:05:38 -07:00
react-native-gradle-plugin Configure JDK Toolchain to 11 for all the 3rd party libraries. (#37575) 2023-06-01 03:24:45 -07:00
rn-tester Fix: a11y crash when an accessible link is ellipsized away (#37050) 2023-06-04 00:03:01 -07:00
typescript-config Better TypeScript support for package.json exports field (#37377) 2023-05-13 09:38:17 -07:00
virtualized-lists Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00