Classes
The following classes are available globally.
-
The MRDispatchTimer class provides a simple way to execute a block of code at set intervals.
See more -
An ordered, first-in-first-out (FIFO) collection
The Queue is implemented using a circular buffer, which allows for efficient enqueue and dequeue operations with a constant time complexity. To optimize performance, it utilizes an UnsafeMutablePointer instead of a standard Swift Array. The buffer automatically resizes to ensure optimal use of memory, by increasing the capacity when the number of elements in the queue reaches the current capacity, and reducing it when it drops below a quarter of the current capacity.
See more -
Atomic based on ReadWriteLock.
See moreImportant
This property wrapper guarantees that the wrapped value will be thread-safe, as well as the absence of any side effects. -
Atomic based on UnfairLock.
This type of lock can be a good choice when per-lock overhead is important (because for some reason you have a huge number of them) and you don’t need fancy features. It’s implemented as a single 32-bit integer which you can place wherever you need it, so overhead is small.
See moreImportant
This property wrapper guarantees that the wrapped value will be thread-safe, as well as the absence of any side effects. -
MRUserDefaultsProvider
A class that provides a simple interface for interacting with UserDefaults.
See more
View on GitHub
Install in Dash
Classes Reference