Support of progress reporting and incremental results in .NET 4.0 “Task Parallel Library”

后端 未结 5 651
有刺的猬
有刺的猬 2020-12-29 07:49

I know that Task Parallel Library is still in Beta and there are likely to be less resources available but from whatever I have read, library gives very special treatment to

5条回答
  •  滥情空心
    2020-12-29 08:38

    To report progress from an async task, pass an IProgress into the async method. Within the method, call Report with the progress data. The caller can decide how to handle that progress report (i.e. Ignore it, or update the UI).

提交回复
热议问题