Skip to content

Commit ed16657

Browse files
committed
chore: Adjust main thread blocking mode
1 parent 32d556a commit ed16657

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ namespace Uno.WebAssembly.Bootstrap {
104104
.withRuntimeOptions(config.config.uno_runtime_options)
105105
.withConfig({ loadAllSatelliteResources: config.config.uno_load_all_satellite_resources });
106106

107+
var features = config.config.environmentVariables['UNO_BOOTSTRAP_MONO_RUNTIME_FEATURES'];
108+
109+
if (features && features.includes('threads')) {
110+
// m.dotnet
111+
// .withConfig({ jsThreadBlockingMode: "DangerousAllowBlockingWait" });
112+
}
113+
107114
const dotnetRuntime = await m.default(
108115
(context: DotnetPublicAPI) => {
109116
bootstrapper.configure(context);

0 commit comments

Comments
 (0)