v3.0.0 - Unfair Lock
- On iOS 10+ and macOS 10.12+ the locking mechanism for
Promise
is backed byos_unfair_lock
bringing a significant performance improvement. On prior versions of iOS and macOS the locking mechanism falls back to a serialDispatchQueue
- Expose a new
Lock
class that hides the implementation detail of the underlying lock, preferringos_unfair_lock
when available, and falling back to a serialDispatchQueue
when it's not.