Home | History | Annotate | Download | only in image_loader

Lines Matching defs:Worker

8  * Worker for requests. Fetches requests from a queue and processes them
11 function Worker() {
14 * cache, then they are processed immediately after starting the worker.
45 * If the worker has been started.
57 Worker.MAXIMUM_IN_PARALLEL = 5;
62 * processed immediately once the worker is started.
66 Worker.prototype.add = function(request) {
81 * Removes a request from the worker (if exists).
84 Worker.prototype.remove = function(requestId) {
105 Worker.prototype.start = function() {
108 // Process tasks added before worker has been started.
121 Worker.prototype.sortPendingRequests_ = function() {
133 Worker.prototype.continue_ = function() {
136 this.activeRequests_.length < Worker.MAXIMUM_IN_PARALLEL) {
156 Worker.prototype.finish_ = function(request) {