-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Closed
Copy link
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
In #84492 we added WebWorkerEventLoop.HasUnsettledInteropPromises
that will be used by #84494 to keep a threadpool worker thread alive in the JS event loop as long as some promise exists that is needed by a JSImport
ed Task
in C#.
There could be, however, other reasons why a threadpool worker thread may need to stay alive: if the JS code has used setTimeout
with a callback that depends on a JS proxy of a C# function or object, for example. These additional scenarios can be somewhat covered by creating promises that the C# code could await
, but we should also have more robust tracking in our interop layer.
pavelsavara
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm