Function: url-queue-retrieve

url-queue-retrieve is an autoloaded and byte-compiled function defined in url-queue.el.gz.

Signature

(url-queue-retrieve URL CALLBACK &optional CBARGS SILENT INHIBIT-COOKIES)

Documentation

Retrieve URL asynchronously and call CALLBACK with CBARGS when finished.

This is like url-retrieve (which see for details of the arguments), but with limits on the degree of parallelism. The variable url-queue-parallel-processes sets the number of concurrent processes. The variable url-queue-timeout sets a timeout.

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-queue.el.gz
;;;###autoload
(defun url-queue-retrieve (url callback &optional cbargs silent inhibit-cookies)
  "Retrieve URL asynchronously and call CALLBACK with CBARGS when finished.
This is like `url-retrieve' (which see for details of the arguments),
but with limits on the degree of parallelism.  The variable
`url-queue-parallel-processes' sets the number of concurrent processes.
The variable `url-queue-timeout' sets a timeout."
  (setq url-queue
	(append url-queue
		(list (make-url-queue :url url
				      :callback callback
				      :cbargs cbargs
				      :silentp silent
				      :inhibit-cookiesp inhibit-cookies
                                      :context-buffer (current-buffer)))))
  (url-queue-setup-runners))