mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added missing ObserveOn call in Log list construction
Added a few more explicit scheduler definitions to Buffer/Batch for good measure
This commit is contained in:
parent
adcd991b0e
commit
2d32be10bf
@ -54,8 +54,9 @@ namespace Wabbajack
|
||||
|
||||
// Set up logging
|
||||
Utils.LogMessages
|
||||
.ObserveOn(RxApp.TaskpoolScheduler)
|
||||
.ToObservableChangeSet()
|
||||
.Buffer(TimeSpan.FromMilliseconds(250))
|
||||
.Buffer(TimeSpan.FromMilliseconds(250), RxApp.TaskpoolScheduler)
|
||||
.Where(l => l.Count > 0)
|
||||
.FlattenBufferResult()
|
||||
.Top(5000)
|
||||
@ -89,7 +90,7 @@ namespace Wabbajack
|
||||
WorkQueue.Status
|
||||
.ObserveOn(RxApp.TaskpoolScheduler)
|
||||
.ToObservableChangeSet(x => x.ID)
|
||||
.Batch(TimeSpan.FromMilliseconds(250))
|
||||
.Batch(TimeSpan.FromMilliseconds(250), RxApp.TaskpoolScheduler)
|
||||
.EnsureUniqueChanges()
|
||||
.ObserveOn(RxApp.MainThreadScheduler)
|
||||
.Sort(SortExpressionComparer<CPUStatus>.Ascending(s => s.ID), SortOptimisations.ComparesImmutableValuesOnly)
|
||||
|
Loading…
Reference in New Issue
Block a user