你的位置: 码友网首页 / 资讯源列表 / Creating a Throttle with ActionBlock

关于[Creating a Throttle with ActionBlock]的摘要:

We have an application that needs to perform a repetitive task on many external services and record then aggregate the results. As the system has grown the number of external systems has increased which causes some issues as we originally just created a number of tasks and waited on them all completing. This overwhelmed various things as all these tasks were launched near simultaneously. We needed a way to throttle each task, so we used an ActionBlock, part of the Task Parallel Library’s System.Threading.Tasks.Dataflow package.

原文地址: https://colinmackay.scot/2018/07/16/creating-a-throttle-with-actionblock/

收录时间: 2018-07-17 浏览量: 2002 分类: .NET

| 0 收藏 | 0