Visual Basic (Declaration) | |
---|---|
Public MustInherit NotInheritable Class Coroutine |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Coroutine |
C# | |
---|---|
public static class Coroutine |
C++/CLI | |
---|---|
public ref class Coroutine abstract sealed |
Use Coroutine.Start to start serial execution of the asynchronous, and synchronous, actions within an "iterator". The iterator is a function which returns an System.Collections.IEnumerable of objects implementing the INotifyCompleted interface. All asynchronous operations within DevForce return a sub-typed BaseOperation, which implements this interface. The Coroutine waits for each operation to complete, either sucessfully or not, and then moves to the next action within the iterator.
Use Coroutine.StartParallel to start parallel execution of the asynchronous actions within an iterator. When run in parallel, the Coroutine starts each asynchronous action, and then waits for all actions to complete.
For a detailed discussion of the Coroutine and its flow, see the DevForce Resource Center.
System.Object
IdeaBlade.EntityModel.Coroutine
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family