首页 文章
  • 3 votes
     answers
     views

    异步任务,取消和例外

    我目前正在学习如何使用 Task 正确地公开我们的库API的异步部分,以便它们可以更容易和更好地用于客户 . 我决定用the TaskCompletionSource approach包围一个 Task 围绕它't get scheduled on the thread pool (in the instance here unneeded anyway since it's基本上只是一个计时器)...

热门问题