You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to supporting a promise data type in the ReactMethods, we should also add support for invoking asynchronous methods and chaining the result to a promise. This needs to be managed very carefully, as the native modules are run using the "AnyBackgroundThread" spec; the concern is that if the asynchronous call releases control too early, it may allow the next item in the native queue to execute.
In general, this is not a good idea. Primarily because the user should be very conscious of what sort of asynchronous or blocking activities they are performing on one of the "main" module threads. In general, the guidelines are to move any asynchronous work off thread. It's fine to use async void, so long as the developer knows what they are doing (e.g., ensure use of ConfigureAwait(false) where necessary).
Activity
rozele commentedon Feb 18, 2016
Also, ensure that running asynchronous operations will not compromise the LimitedConcurrencyTaskScheduler.
rozele commentedon Jun 7, 2016
In general, this is not a good idea. Primarily because the user should be very conscious of what sort of asynchronous or blocking activities they are performing on one of the "main" module threads. In general, the guidelines are to move any asynchronous work off thread. It's fine to use async void, so long as the developer knows what they are doing (e.g., ensure use of ConfigureAwait(false) where necessary).
fix: WebSocket binaryType handling — stop unconditional Blob intercep…
[0.84] Upgrades including Visual Studio 2026 (#16232)
[0.82] Upgrades including Visual Studio 2026 (#16234)
[0.81] Upgrades including Visual Studio 2026 (#16235)
[0.83] Upgrades including Visual Studio 2026 (#16233)