We actively utilize JSType.Function for JS->managed callbacks and encountering problems when trying to add support for multithreaded mode: MT requires JS->managed calls to be async, however returning Task type doesn't work for JSType.Function:
Error SYSLIB1072 : The type 'System.Func' is not supported by source-generated JavaScript interop.
The generated source will not handle marshalling of parameter 'callback'.
For more information see https://aka.ms/dotnet-wasm-jsinterop
We actively utilize
JSType.Function
for JS->managed callbacks and encountering problems when trying to add support for multithreaded mode: MT requires JS->managed calls to be async, however returningTask
type doesn't work forJSType.Function
: