6c315de226
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35385 In OpenSource builds folly:: types are not always easy to consume. With butter:: we actually allow consumers to opt-into other/non folly:: types (by providing a custom butter:: implementation). This change adds a butter::function for that purpose. It is especially useful for react-native-windows which prefers Mso::Functor over folly::Function. You can use it by setting those compiler flags: -DBUTTER_FUNCTION_OVERRIDE_INCLUDE=<functional/functor.h> -DBUTTER_FUNCTION_OVERRIDE=Mso::Functor std::function is no option as it is not move-only and we can't wait till 2025 > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0288r9.html Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D41388193 fbshipit-source-id: 56f58b9ddc602aa4b13000031d50de5228b4a16b |
||
---|---|---|
.. | ||
bridging | ||
config | ||
debug | ||
nativemodule | ||
renderer | ||
test_utils | ||
utils |