【问题标题】:How can I get a worker thread to execute a callback on the main UI thread?如何让工作线程在主 UI 线程上执行回调?
【发布时间】:2018-10-02 19:35:34
【问题描述】:

我想并行执行多个任务,一旦完成,我想在主 UI 线程上执行回调。这可能吗?如果有,怎么做?

【问题讨论】:

    标签: c# asp.net-core blazor


    【解决方案1】:

    目前还不支持多线程,仍在考虑中,但支持使用 Async await 并行执行(就像在 C# 中一样)。

    https://github.com/aspnet/Blazor/issues/139

    https://github.com/aspnet/Blazor/issues/140

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-09
      • 1970-01-01
      • 2016-04-11
      • 1970-01-01
      • 2014-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多