PriorityFetch
Classes
Wraps fetch api and adds concurrency management to it by queueing requests, as well as prioritization in that queue
Constants
-
priority_value_map :
Object -
DEFAULT_CONCURRENCY :
number
Functions
-
extract_priority_from_resource(p) ⇒
number -
get_priority_score(request) ⇒
number
FetchRequest
Kind: global class
new FetchRequest(resource, options)
| Param | Type |
|---|---|
| resource | Request | string |
| options | Object |
priority_value_map : Object
Kind: global constant
Read only: true
DEFAULT_CONCURRENCY : number
Kind: global constant
Read only: true
extract_priority_from_resource(p) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| p | string | undefined |
get_priority_score(request) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| request | FetchRequest |