Name | Type | Default | Description |
---|---|---|---|
concurrencyLimit |
number | 4 |
optional
The maximum amount of simultaneous fetch requests. |
Methods
-
Aborts all ongoing and queued fetch requests issued by this
FetchManager
.Ongoing requests are only abortable if the environment supports the HTML5 AbortController API.
-
Fetches data from the given URL.
Name Type Description url
string The URL from where to fetch from.
options
object optional Optional options to the HTML5
fetch
command.Returns:
Type Description Promise The fetch Promise object. -
Fetches data from the given URL. The difference to low.FetchManager.fetch is that the fetch operation is handled priorized by being prepended to the front of the fetch queue.
Name Type Description url
string The URL from where to fetch from.
options
object optional Optional options to the HTML5
fetch
command.Returns:
Type Description Promise The fetch Promise object.