internal void AddDependency(QueueItem dependency) { processor.Dispatch(_ => dependencies = dependencies.Add(dependency)); }
/// <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)); }
internal void EnqueueDependent(QueueItem dependent) { processor.Dispatch(_ => dependents = dependents.Enqueue(dependent)); }
/// <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); }