   @discardableResult
   fileprivate func resolve(_ result: Result<Value, Error>) -> Bool
   {
-    let originalState = deferredState.load(.relaxed).state
+    let originalState = CAtomicsLoad(deferredState, .relaxed).state
     guard originalState != .resolving else { return false }
 
-    let updatedState = deferredState.fetch_or(.resolving, .acqrel).state
+    let updatedState = CAtomicsBitwiseOr(deferredState, .resolving, .acqrel).state
     guard updatedState != .resolving else { return false }
     // this thread has exclusive access
 

  /// - returns: this `Deferred`'s `Result`

  public var result: Result<Value, Error> {
    if deferredState.load(.acquire).isResolved == false
    {
      if let current = DispatchQoS.QoSClass.current, current > queue.qos.qosClass
      { // try to boost the QoS class of the running task if it is lower than the current thread's QoS

  /// - returns: `true` iff this `Deferred` has become resolved.

  public var isResolved: Bool {
    return CAtomicsLoad(deferredState, .relaxed).isResolved
  }

  /// Attempt to cancel this `Deferred`
