Cogs.Collections.Synchronized
1.6.0
See the version list below for details.
dotnet add package Cogs.Collections.Synchronized --version 1.6.0
NuGet\Install-Package Cogs.Collections.Synchronized -Version 1.6.0
<PackageReference Include="Cogs.Collections.Synchronized" Version="1.6.0" />
paket add Cogs.Collections.Synchronized --version 1.6.0
#r "nuget: Cogs.Collections.Synchronized, 1.6.0"
// Install Cogs.Collections.Synchronized as a Cake Addin #addin nuget:?package=Cogs.Collections.Synchronized&version=1.6.0 // Install Cogs.Collections.Synchronized as a Cake Tool #tool nuget:?package=Cogs.Collections.Synchronized&version=1.6.0
Good idea: binding UI elements to observable collections. Bad idea: manipulating observable collections bound to UI elements from background threads. Why? Because the collection change notification event handlers will be executed on non-UI threads, which cannot safely manipulate the UI. So, I guess we need to carefully marshal calls over to the UI thread whenever we manipulate or even read those observable collections, right?
Not anymore.
Introducing the SynchronizedObservableCollection<T>
, SynchronizedObservableDictionary<TKey, TValue>
, and SynchronizedObservableSortedDictionary<TKey, TValue>
classes. Create them on UI threads. Or, pass the UI thread's synchronization context to their constructors. Then, any time they are touched, the call is marshalled to the context of the appropriate thread. They even include async alternatives to every method and indexer just in case you would like to be well-behaved and not block worker threads just because the UI thread is busy.
I mean, no judgment. We just don't like sending threads to thread jail.
Last, but not least, each of them also has an array of range methods to handle performing multiple operations at once when you know you'll need to in advanced and would like to avoid O(2n) context switching.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Cogs.Collections (>= 1.9.3)
- Cogs.Threading (>= 1.10.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cogs.Collections.Synchronized:
Package | Downloads |
---|---|
Cogs.ActiveQuery
Cogs for active queries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.7.0 | 591 | 1/26/2023 |
1.6.4 | 482 | 7/6/2022 |
1.6.3 | 3,628 | 4/4/2022 |
1.6.2 | 2,015 | 3/27/2022 |
1.6.1 | 568 | 12/21/2021 |
1.6.0 | 455 | 12/18/2021 |
1.5.3 | 448 | 12/16/2021 |
1.5.2 | 452 | 12/16/2021 |
1.5.1 | 823 | 11/3/2021 |
1.5.0 | 878 | 7/15/2021 |
1.4.6 | 1,218 | 2/10/2021 |
1.4.5 | 656 | 2/1/2021 |
1.4.4 | 507 | 1/30/2021 |
1.4.3 | 380 | 1/30/2021 |
1.4.2 | 616 | 11/22/2020 |
1.4.1 | 1,426 | 10/20/2020 |
1.4.0 | 439 | 10/20/2020 |
1.3.1 | 625 | 10/19/2020 |
1.3.0 | 524 | 10/5/2020 |
1.2.3 | 3,758 | 5/7/2020 |
1.2.2 | 489 | 5/7/2020 |
1.2.1 | 854 | 4/17/2020 |
1.2.0 | 691 | 4/13/2020 |
1.1.2 | 471 | 4/11/2020 |
1.1.0 | 513 | 3/4/2020 |
1.0.2 | 889 | 3/4/2020 |
1.0.1 | 507 | 3/1/2020 |
1.0.0 | 598 | 2/29/2020 |
We made ProcessingQueue and AsyncProcessingQueue support the IWaitUntilIdle interface.