[英]How can I get a worker thread to execute a callback on the main UI thread?
I want to execute a number of tasks in parallel, once complete I want to execute a callback on the main UI thread. 我想并行执行许多任务,一旦完成,我想在主UI线程上执行回调。 Is this possible? 这可能吗? If so, how? 如果是这样,怎么办?
Multiple threading is not yet currenly supported, Its still under consideration, but there is support for parallel execution using Async await
(just like in C#). 目前尚不支持多线程,目前仍在考虑中,但仍支持使用Async await
并行执行(就像在C#中一样)。
https://github.com/aspnet/Blazor/issues/139 https://github.com/aspnet/Blazor/issues/139
https://github.com/aspnet/Blazor/issues/140 https://github.com/aspnet/Blazor/issues/140
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.