summaryrefslogtreecommitdiff
path: root/lib/internal/queue.js
Commit message (Collapse)AuthorAgeFilesLines
* fix: update priorityQueue functionality to match queue (#1790)Hubert Argasinski2022-04-151-4/+9
|
* be explicit (#1769)Jimmy Wärting2021-11-161-4/+4
|
* feat(queue): add pushAsync and unshiftAsync functions that reject on error. ↵Alexander Early2019-06-221-27/+44
| | | | Closes #1659
* fix: don't completely flatten arrays pushed to queue/cargo. Fixes #1645Alexander Early2019-05-241-6/+16
|
* BREAKING CHANGE: awaitable queues (#1641)Alex Early2019-05-191-32/+104
| | | | | | | | | | | | * BREAKING CHANGE: awaitable queues * fix priorityQueue tests * fix tests in firefox * make the upgrade a bit more user-friendly * clarify docs
* feat: await-able Async methods (#1572)Alex Early2018-09-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * make each and family awaitable * dont pretend they're AsyncFunctions * check errors * ensure function name is preserved somehow * awaitable concat * awaitable detect * awaitable every/filter * awaitable groupBy * awaitable map/mapValues * awaitable reduce * awaitable reject * awaitable some * awaitable transform * awaitable times * awaitable auto * awaitable compose/seq * awaitable whilst/until (lol) * awaitable forever * awaitable parallel/race * awaitable retry * awaitable series (lol) * awaitable tryEach * awaitable waterfall (lol) * lint * cleanup, remove noop and unused internal functions
* feat: Iterable queues (#1556)Alex Early2018-07-091-0/+3
| | | | | | * feat: iterable queues * docs
* ES6-ify codebase (#1553)Alex Early2018-07-081-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cancelable foreach * cancelable waterfall * cancellable auto * fix lint * fix tests * cancelable whilst/until/during/forever * fix waterfall test. It WILL get there * docs * use rest params instead of slice * clean up internals * remove property func * clarify uses of createTester * happy path async funtions in asyncify * stop using arguments * DLL to class * moar arrows * fix merge issues * remove forOwn * moar arrows * fix merge mistake * even more arrows, what can stop him * mo more fn.apply(null,...) * remove more spurious uses of apply * update lint config * just when you thought there couldn't possibly be more arrows * use eslint:recommended * even less uses or aguments * get rid of prototype cuteness * fix concat tests * fix more tests
* limits of less than 1 are now an error (#1552)Alex Early2018-07-011-1/+1
| | | | | | * BREAKING CHANGE: limits of less than 1 are now an error * fix lint
* Drop noopFederico Brigante2018-04-191-2/+1
|
* Drop _baseIndexOfFederico Brigante2018-04-191-2/+1
|
* Drop isArrayFederico Brigante2018-04-191-2/+1
|
* Use shift instead of splice (when possible) in queueDoron Pagot2017-07-211-1/+3
|
* Improve `async.queue` start up performance (#1448)Hubert Argasinski2017-07-101-1/+9
| | | | | | | | | | * batch queue.push calls * add more queue perf suites * undo dist changes * prevent overwriting q.process from pausing the queue
* ensure q.workersList() contains items being processed [fixes #1428] (#1429)Hubert Argasinski2017-06-101-2/+3
| | | | | | | | * ensure q.workersList() contains items being processed [fixes #1428] * remove newline * improve q.workersList() test
* Merge pull request #1397 from caolan/linked-list-methodsAlex Early2017-04-081-0/+3
|\ | | | | queue.remove()
| * rename filter to removeAlexander Early2017-04-081-3/+1
| |
| * add queue.removelinked-list-methodsAlexander Early2017-04-061-0/+5
| |
* | remove rest completelyAlexander Early2017-04-031-6/+5
|/
* change timing of q.empty() so that q.idle() will be false. Fixes #1367Alexander Early2017-04-021-2/+3
|
* handle async funcs in control flow methodsAlexander Early2017-03-251-10/+13
|
* Avoid unnessary queuing of *concurrency processes on resumepr/1267Graeme Yeates2016-12-011-6/+1
|
* Slightly different approach to avoiding starting to processing tasks with ↵Graeme Yeates2016-11-301-11/+9
| | | | sync callbacks
* prevent stack growth if queue callback is called synchronouslyJames Crosby2016-11-301-1/+11
|
* Cleanup some of the dependency importslib-import-cleanupsGraeme Yeates2016-11-171-1/+1
| | | | Saves 800 bytes on min.js
* Merge pull request #1253 from caolan/loopsGraeme Yeates2016-07-291-14/+13
|\ | | | | Unroll simple loop abstractions
| * Unroll simple loop abstractionsGraeme Yeates2016-07-231-14/+13
| |
* | Update lodash to 4.14.0Graeme Yeates2016-07-241-1/+1
|/
* (nit) Improve queue position tracking variable nameGraeme Yeates2016-07-201-2/+2
|
* use each instead of somequeue-optsAlexander Early2016-07-071-3/+2
|
* Optimize queue processingGraeme Yeates2016-07-031-8/+8
|
* Implment queues using DLLsGraeme Yeates2016-06-301-26/+26
|
* Merge pull request #1170 from jnordberg/queue-errorAlex Early2016-05-311-0/+5
|\ | | | | Add optional error handler to queues
| * Add queue.error handler.Johan Nordberg2016-05-291-0/+5
| | | | | | With the signature `function(error, task){}`
* | Remove redundant "use strict" directive as ES2015 modules are implicitly in ↵John-David Dalton2016-05-311-2/+0
|/ | | | strict mode.
* changed saturated and unsaturated to better reflect realityAlexander Early2016-03-221-3/+7
|
* convert priorityQueue tests to mochaAlexander Early2016-03-221-6/+9
|
* added a base implementation for unsaturation event #868Ernie Casilla2016-02-201-0/+5
| | | | | | updating the README fix readme
* handle moved lodash internal methodsAlexander Early2016-02-101-3/+3
|
* update locations of lodash methods--global2016-01-131-2/+2
|
* Avoid including lodash string parsing in bundleGraeme Yeates2016-01-041-1/+1
|
* Set up async bundlesGraeme Yeates2015-12-291-0/+2
|
* [WIP] modularization (#984)Graeme Yeates2015-12-291-0/+138