;; So, to get the value:
;; (when (url-future-completed-p future) (url-future-value future))
-;; See the ERT tests and the code for further details.
+;; See `url-future-tests' and the code below for further details.
;;; Code:
-(eval-when-compile (require 'cl))
+(eval-when-compile (require 'cl-lib))
-(defstruct url-future callback errorback status value)
+(cl-defstruct url-future callback errorback status value)
(defmacro url-future-done-p (url-future)
`(url-future-status ,url-future))