IdeaBlade.EntityModel.Compat Assembly > IdeaBlade.EntityModel Namespace : Coroutine Class |
'Declaration
Public MustInherit NotInheritable Class Coroutine
'Usage
Dim instance As Coroutine
public static class Coroutine
Use Start(Func<IEnumerable<INotifyCompleted>>,Action<CoroutineOperation>) 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 BasicOperation, 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 StartParallel(Func<IEnumerable<INotifyCompleted>>,Action<CoroutineOperation>) 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2