Example #1
0
 internal void AddDependency(QueueItem dependency)
 {
     processor.Dispatch(_ => dependencies = dependencies.Add(dependency));
 }
Example #2
0
 /// <summary>
 /// Enqueues the specified dependent to only execute after the specified dependency has finished.  If this
 /// dependency has already finished, then it will simply be enqueued on the main processor.
 /// </summary>
 public QueueItem EnqueueDependent(QueueItem dependency, QueueItemType type, QueueAction action)
 {
     return(EnqueueDependent(new[] { dependency }, type, action));
 }
Example #3
0
 internal void EnqueueDependent(QueueItem dependent)
 {
     processor.Dispatch(_ => dependents = dependents.Enqueue(dependent));
 }
Example #4
0
 /// <summary>
 /// Enqueues the specified dependent to only execute after the specified dependency has finished.  If this
 /// dependency has already finished, then it will simply be enqueued on the main processor.
 /// </summary>
 public void EnqueueDependent(QueueItem dependency, QueueItem dependent)
 {
     EnqueueDependent(new[] { dependency }, dependent);
 }