tpl-dataflow

Where can I find a TPL dataflow version for 4.0?

醉酒当歌 提交于 2019-11-27 08:56:27
I am looking for the .NET 4.0 version of the TPL dataflow library. The Nuget package has a 4.0 version of the library, but it seems to target .NET 4.5. I found various references to a 4.0 version, like in this forum: http://social.msdn.microsoft.com/Forums/en-US/tpldataflow/thread/6206c714-6dee-4d17-a880-26d0c137a167 But the link mentioned just redirects me to the Nuget page of the library. Does anyone know where I can find a working version that targets .NET 4.0? I wrote Steve from the TPL dataflow team about this problem and he responded me with the following download link: http://download

Throttling asynchronous tasks

隐身守侯 提交于 2019-11-26 00:22:25
问题 I would like to run a bunch of async tasks, with a limit on how many tasks may be pending completion at any given time. Say you have 1000 URLs, and you only want to have 50 requests open at a time; but as soon as one request completes, you open up a connection to the next URL in the list. That way, there are always exactly 50 connections open at a time, until the URL list is exhausted. I also want to utilize a given number of threads if possible. I came up with an extension method,