async Task的调度不像我在TPL数据流中所期望的那样工作。在下面的示例中,我期望ActionBlock在TransformBlock可用时立即处理来自它的数据。System.Diagnostics.Stopwatch();
{
var plus10 = new TransformBlockforeach (var input in
我的TPL数据流管道使用多个相同的块,唯一的区别是每个块都使用它的个人代理发送http请求。所以WebProxy这里是一个参数。我这样做是为了创建它们(概念简化的示例,WebProxy替换为blockNum Integer): Dim blocks As New List(Of TransformBlock(Of Integer, Int