Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DebounceDispatcher: Remove .Wait() to avoid PlatformNotSupportedException#12866

Merged
ScarletKuro merged 1 commit into
MudBlazor:devfrom
pavelsavara:net11-wait
Mar 15, 2026
Merged

DebounceDispatcher: Remove .Wait() to avoid PlatformNotSupportedException#12866
ScarletKuro merged 1 commit into
MudBlazor:devfrom
pavelsavara:net11-wait

Conversation

@pavelsavara

Copy link
Copy Markdown
Contributor

With Net11 we made the PNSE for .Wait() more strict.
See dotnet/runtime#123329

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Arg_PlatformNotSupported
System.PlatformNotSupportedException: Arg_PlatformNotSupported
   at System.Threading.Thread.ThrowIfSingleThreaded()
   at System.Threading.SemaphoreSlim.WaitCore(Int64 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.SemaphoreSlim.Wait()
   at MudBlazor.Utilities.Debounce.DebounceDispatcher.Dispose()
   at MudBlazor.Charts.MudAxisChartBase`2[[System.Double, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MudBlazor.StackedBarChartOptions, MudBlazor, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null]].Dispose(Boolean disposing)
   at MudBlazor.Charts.MudAxisChartBase`2[[System.Double, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MudBlazor.StackedBarChartOptions, MudBlazor, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null]].Dispose()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.DisposeAsync()
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.DisposeInBatchAsync(RenderBatchBuilder batchBuilder)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessDisposalQueueInExistingBatch()

@pavelsavara pavelsavara marked this pull request as ready for review March 15, 2026 09:32
@mudbot mudbot Bot changed the title do not .Wait() in browser to avoid PlatformNotSupportedException DebounceDispatcher: Remove .Wait() to avoid PlatformNotSupportedException Mar 15, 2026
@mudbot mudbot Bot added blazor: wasm Only occurs with WebAssembly hosting (AOT, trimming, size, sandbox) bug Unexpected behavior or functionality not working as intended labels Mar 15, 2026
@ScarletKuro

Copy link
Copy Markdown
Member

Thanks!

@ScarletKuro ScarletKuro merged commit fcc71d1 into MudBlazor:dev Mar 15, 2026
11 checks passed
This was referenced Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blazor: wasm Only occurs with WebAssembly hosting (AOT, trimming, size, sandbox) bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants