Files
react-native/packages
Moti Zilberman 46d18885cc Use Folly Executors for scheduleCallback in tests (#42379)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42379

Changelog: [Internal]

Creates the `InspectorPackagerConnectionTestAsync` fixture class to help with testing edge cases that rely on how scheduled callbacks interleave with other API calls. We use [`folly::ManualExecutor`](https://github.com/facebook/folly/blob/main/folly/executors/ManualExecutor.h) for async tests and [`folly::QueuedImmediateExecutor`](https://github.com/facebook/folly/blob/main/folly/executors/QueuedImmediateExecutor.h) for the rest.

Reviewed By: huntie

Differential Revision: D52807387

fbshipit-source-id: 8c41e70c6bacb91a1b866377ed14f9e14631bbf0
2024-01-19 04:19:23 -08:00
..