title: ContinueWith and TaskScheduler.FromCurrentSynchronizationContext on blazor wasm
body: <p>I'm porting old WinForms code to blazor that uses Task.ContinueWith() passing  TaskScheduler.FromCurrentSynchronizationContext() as parameter to run the continuation on the UI thread.</p>
  <p>It works fine on blazor server, but throws an exception on blazor wasm:</p>
  <pre><code>System.InvalidOperationException: The current SynchronizationContext may not be used as a TaskScheduler.
  </code></pre>
  <p>SynchronizationContext.Current is null in blazor wasm, probably because is not needed as the browser is single threaded, but why not to set a dummy SynchronizationContext for compatibility? Can I do it myself?</p>