mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fdfa012dae
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