Files
react-native/packages
Pieter De Baets fbd8504cc0 Replace RAIICallbackWrapperDestroyer with AsyncCallback (re-land) (#41048)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41048

Reapplies D49792717

AsyncCallback and SyncCallbacks are better primitives for jsi::Function handling. The code is simpler and requires less manual argument passing. See in D49684248 how the API was extended to support more use-cases.

The underlying issue causing memory corruption has been addressed in D50286876.

Changelog: [Deprecated] AsyncCallback replaces RAIICallbackWrapperDestroyer as a safer way to manage jsi::Function memory ownership.

Reviewed By: rshest

Differential Revision: D50319914

fbshipit-source-id: e038813cad85c47be1f004bc2ea1fdaf0eee9094
2023-10-19 05:20:55 -07:00
..