react-native-macos/React/Base
Valentin Shergin 7a20964e9d Introducing `RCTBridgeWillBeInvalidatedNotification`
Summary:
This diff introduces a new broadcasting event for Bridge that communicates that the bridge is being invalidated. This notification can be used by interested parties as a signal to start tearing down all bridge-dependant processes.

The biggest difference between the new event and `RCTBridgeWillInvalidateModulesNotification` is that the latter is being called asynchronously on the JavaScript thread, whereas the new one is being called on whatever thread caused the Bridge invalidation (deallocation) *synchronously*. In most cases that happens on the main thread that allows destroying strictly-main-threaded infra (mostly UI) synchronously and avoids races.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D18050889

fbshipit-source-id: 9364c820ea2b0358edf45f0e2b3e16a13d730a9c
2019-10-24 17:45:40 -07:00
..
Surface iOS: optimize RCTUserInterfaceStyleDidChangeNotification handling 2019-10-23 19:04:36 -07:00
RCTAssert.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTAssert.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBridge+Private.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBridge.h Introducing `RCTBridgeWillBeInvalidatedNotification` 2019-10-24 17:45:40 -07:00
RCTBridge.m Introducing `RCTBridgeWillBeInvalidatedNotification` 2019-10-24 17:45:40 -07:00
RCTBridgeDelegate.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBridgeMethod.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBridgeModule.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBundleURLProvider.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBundleURLProvider.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTComponentEvent.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTComponentEvent.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTConvert.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTCxxConvert.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTCxxConvert.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTDefines.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTDisplayLink.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTDisplayLink.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTErrorCustomizer.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTErrorInfo.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTErrorInfo.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTEventDispatcher.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTEventDispatcher.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTFrameUpdate.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTFrameUpdate.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageSource.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTImageSource.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInvalidating.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTJSStackFrame.h Render collapsed frames in RedBox 2019-10-22 11:05:36 -07:00
RCTJSStackFrame.m Render collapsed frames in RedBox 2019-10-22 11:05:36 -07:00
RCTJavaScriptExecutor.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTJavaScriptLoader.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTJavaScriptLoader.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTKeyCommands.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTKeyCommands.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTLog.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTLog.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTManagedPointer.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTManagedPointer.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleData.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleData.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleMethod.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTModuleMethod.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMultipartDataTask.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMultipartDataTask.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMultipartStreamReader.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTMultipartStreamReader.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTNullability.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTParserUtils.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTParserUtils.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTPerformanceLogger.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTPerformanceLogger.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTReloadCommand.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTReloadCommand.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRootContentView.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRootContentView.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRootView.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRootView.m iOS: optimize RCTUserInterfaceStyleDidChangeNotification handling 2019-10-23 19:04:36 -07:00
RCTRootViewDelegate.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRootViewInternal.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTVRemoteHandler.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTVRemoteHandler.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTouchEvent.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTouchEvent.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTouchHandler.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTouchHandler.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTURLRequestDelegate.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTURLRequestHandler.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUtils.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUtils.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTVersion.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTVersion.m Lazily create RCTVersion dict 2019-07-12 16:51:28 -07:00
RCTWeakProxy.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTWeakProxy.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00