Function: url-future-finish

url-future-finish is a byte-compiled function defined in url-future.el.gz.

Signature

(url-future-finish URL-FUTURE &optional STATUS)

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-future.el.gz
(defun url-future-finish (url-future &optional status)
  (if (url-future-done-p url-future)
      (signal 'error 'url-future-already-done)
    (setf (url-future-status url-future) (or status t))
    ;; the status must be such that the future was completed
    ;; to run the callback
    (when (url-future-completed-p url-future)
      (funcall (or (url-future-callback url-future) 'ignore)
               url-future))
    url-future))