vb.netyieldccr

CCR, Yield and VB.net


I've been trying to get my head around the CCR (Concurrency And Coordination Runtime) to see if it is worth learning.

I program mostly in Vb.net and in most of the examples of using the CCR use the Yield keyword.

How essential is Yield for using the CCR? Are there workarounds? Will VB.net Get the Yield command? (If Not WHY NOT?)


Solution

  • Yes, iterator blocks (as signified by yield statements) are pretty crucial to the CCR from what I understand. They're what make readable asynchronous workflows possible.

    Have you already looked at Parallel Extensions? If not, I'd try that before the CCR - aside from anything else, it's more likely to be VB.NET friendly and it'll be in the "main" .NET 4.0 when that comes out.