   fileprivate init(queue: DispatchQueue)
   {
     self.queue = queue
-    resolved = nil
     CAtomicsInitialize(deferredState, .waiting)
   }
 

      let s = DispatchSemaphore(value: 0)
      self.notify(boostQoS: false, handler: { _ in s.signal() })
      s.wait()
      _ = CAtomicsLoad(deferredState, .acquire)
    }

    // this Deferred is resolved
    return resolved!
  }

  /// Get this `Deferred`'s value, blocking if necessary until it becomes resolved.

  var isResolved: Bool { return (self & .stateMask) == .resolved }
  var state: Int { return self & .stateMask }
  var waiters: UnsafeMutableRawPointer? { return UnsafeMutableRawPointer(bitPattern: self & ~.stateMask) }
  var result: UnsafeMutableRawPointer { return UnsafeMutableRawPointer(bitPattern: self & ~.stateMask)! }
}

/// An asynchronous computation.
