F# Parallel Extras: Agent-based blocking queue

added by tomasp
10/27/2010 5:52:19 AM

0 Kicks, 100 Views

We implement an asynchronous blocking queue using F# agents. The queue is similar to BlockingCollection in .NET 4.0, but blocks asynchronously (using F# workflows), which is more scalable. The type can be used, for example, when implementing the pipeline pattern as demonstrated in previous article.