diff --git a/build/index.d.ts b/build/index.d.ts index 092cf16..ad916af 100644 --- a/build/index.d.ts +++ b/build/index.d.ts @@ -12,19 +12,27 @@ export interface RetryOptions { timeout?: number; } export interface PromisifyAllObjectParam { - [key: string]: (...args: any[]) => void | PromisifyAllObjectParam; + [key: string]: ((...args: any[]) => void) | any; } export interface PromisifyAllObjectResult { - [key: string]: ((...args: any[]) => Promisie) | PromisifyAllObjectResult; + [key: string]: ((...args: any[]) => Promisie) | any; } export default class Promisie extends Promise { [key: string]: Function; constructor(callback: (resolve: (value?: T | PromiseLike) => void, reject: (value?: T | PromiseLike) => void) => void); + then(onfulfilled?: ((value: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined): Promisie; + try(onfulfilled?: ((value: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined): Promisie; + spread(onfulfilled?: ((...args: T[]) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined): Promisie; + map(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined | number, concurrency?: number): Promisie; + each(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined | number, concurrency?: number): Promisie; + settle(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined): Promisie>; + retry(onfulfilled?: ((args: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike) | null | undefined | RetryOptions, options?: RetryOptions): Promisie; + finally(onfulfilled?: (() => any) | null | undefined): Promisie; static promisify(fn: (...args: any[]) => void, _this?: any): (...args: any[]) => Promisie; static promisifyAll(mod: PromisifyAllObjectParam, _this?: any, options?: PromisifyAllOptions): PromisifyAllObjectResult; - static series(fns: Array<(...args: any[]) => any>): Promise; - static pipe(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promise; - static compose(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promise; + static series(fns: Array<((state: any) => any) | any[]>): Promisie; + static pipe(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promisie; + static compose(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promisie; static map(datas: any[], concurrency: any, fn?: (arg: any) => any): Promisie>; static each(datas: T[], concurrency: any, fn?: (arg: any) => any): Promisie>; static parallel(fns: { diff --git a/build/index.js b/build/index.js index ef43027..f60cc54 100644 --- a/build/index.js +++ b/build/index.js @@ -9,104 +9,102 @@ function setHandlers(success, failure) { }; } ; -const thenables = { - try(onSuccess, onFailure) { +export default class Promisie extends Promise { + constructor(callback) { + super(callback); + } + then(onfulfilled, onrejected) { + return super.then(onfulfilled, onrejected); + } + try(onfulfilled, onrejected) { const { success, failure } = setHandlers(function (data) { try { - return (typeof onSuccess === 'function') - ? onSuccess(data) + return (typeof onfulfilled === 'function') + ? onfulfilled(data) : Promisie.reject(new TypeError('ERROR: try expects onSuccess handler to be a function')); } catch (e) { return Promisie.reject(e); } - }, onFailure); + }, onrejected); return this.then(success, failure); - }, - spread(onSuccess, onFailure) { + } + spread(onfulfilled, onrejected) { const { success, failure } = setHandlers(function (data) { if (typeof data[Symbol.iterator] !== 'function') { return Promisie.reject(new TypeError('ERROR: spread expects input to be iterable')); } - if (typeof onSuccess !== 'function') { + if (typeof onfulfilled !== 'function') { return Promisie.reject(new TypeError('ERROR: spread expects onSuccess handler to be a function')); } - return onSuccess(...data); - }, onFailure); + return onfulfilled(...data); + }, onrejected); return this.then(success, failure); - }, - map(onSuccess, onFailure, concurrency) { - if (typeof onFailure === 'number') { - concurrency = onFailure; - onFailure = undefined; + } + map(onfulfilled, onrejected, concurrency) { + if (typeof onrejected === 'number') { + concurrency = onrejected; + onrejected = undefined; } const { success, failure } = setHandlers(function (data) { if (!Array.isArray(data)) { return Promisie.reject(new TypeError('ERROR: map expects input to be an array')); } - if (typeof onSuccess !== 'function') { + if (typeof onfulfilled !== 'function') { return Promisie.reject(new TypeError('ERROR: map expects onSuccess handler to be a function')); } - return Promisie.map(data, concurrency, onSuccess); - }, onFailure); + return Promisie.map(data, concurrency, onfulfilled); + }, onrejected); return this.then(success, failure); - }, - each(onSuccess, onFailure, concurrency) { - if (typeof onFailure === 'number') { - concurrency = onFailure; - onFailure = undefined; + } + each(onfulfilled, onrejected, concurrency) { + if (typeof onrejected === 'number') { + concurrency = onrejected; + onrejected = undefined; } const { success, failure } = setHandlers(function (data) { if (!Array.isArray(data)) { return Promisie.reject(new TypeError('ERROR: each expects input to be an array')); } - if (typeof onSuccess !== 'function') { + if (typeof onfulfilled !== 'function') { return Promisie.reject(new TypeError('ERROR: each expects onSuccess handler to be a function')); } - return Promisie.each(data, concurrency, onSuccess); - }, onFailure); + return Promisie.each(data, concurrency, onfulfilled); + }, onrejected); return this.then(success, failure); - }, - settle(onSuccess, onFailure) { - let { success, failure } = setHandlers(function (data) { + } + settle(onfulfilled, onrejected) { + const { success, failure } = setHandlers(function (data) { if (!Array.isArray(data)) { return Promisie.reject(new TypeError('ERROR: settle expects input to be an array')); } - if (typeof onSuccess !== 'function') { + if (typeof onfulfilled !== 'function') { return Promisie.reject(new TypeError('ERROR: settle expects onSuccess handler to be a function')); } - let operations = data.map(d => () => onSuccess(d)); + const operations = data.map(d => () => onfulfilled(d)); return Promisie.settle(operations); - }, onFailure); + }, onrejected); return this.then(success, failure); - }, - retry(onSuccess, onFailure, options) { - if (typeof onFailure === 'object') { - options = onFailure; - onFailure = undefined; + } + retry(onfulfilled, onrejected, options) { + if (onrejected && typeof onrejected === 'object') { + options = onrejected; + onrejected = undefined; } - let { success, failure } = setHandlers(function (data) { - if (typeof onSuccess !== 'function') + const { success, failure } = setHandlers(function (data) { + if (typeof onfulfilled !== 'function') return Promisie.reject(new TypeError('ERROR: retry expects onSuccess handler to be a function')); return Promisie.retry(() => { - return onSuccess(data); + return onfulfilled(data); }, options); - }, onFailure); + }, onrejected); return this.then(success, failure); - }, - finally(onSuccess) { - let _handler = () => (typeof onSuccess === 'function') - ? onSuccess() + } + finally(onfulfilled) { + const _handler = () => (typeof onfulfilled === 'function') + ? onfulfilled() : Promisie.reject(new TypeError('ERROR: finally expects handler to be a function')); return this.then(_handler, _handler); - }, -}; -export default class Promisie extends Promise { - constructor(callback) { - super(callback); - for (let key in thenables) { - this[key] = thenables[key].bind(this); - } } static promisify(fn, _this) { const promisified = function (...args) { @@ -155,21 +153,17 @@ export default class Promisie extends Promise { }); return promisified; } - static async series(fns) { - let last; - for (let i = 0; i < fns.length; i++) { - last = await fns[i](last); - } - return last; + static series(fns) { + return Promisie.iterate(utilities.series(fns), null); } static pipe(fns) { - return async function (...args) { + return function (...args) { const operations = Object.assign([], fns); const first = operations[0]; operations[0] = function () { return first(...args); }; - return await Promisie.series(fns); + return Promisie.series(operations); }; } static compose(fns) { @@ -179,6 +173,9 @@ export default class Promisie extends Promise { const method = (typeof concurrency === 'function') ? concurrency : fn; + if (typeof concurrency !== 'number') { + concurrency = 1; + } return Promisie.promisify(utilities.map)(method, datas, concurrency); } static each(datas, concurrency, fn) { @@ -197,7 +194,8 @@ export default class Promisie extends Promise { return Promisie.promisify(utilities.settle)(fns, concurrency); } static iterate(generator, initial) { - return Promisie.promisify(utilities.iterator)(generator(initial)); + const iterator = utilities.iterator(generator(initial)); + return Promisie.promisify(iterator)(initial); } static doWhilst(fn, evaluate) { return Promisie.iterate(utilities.doWhilst(fn, evaluate), null); @@ -211,8 +209,13 @@ export default class Promisie extends Promise { } static retry(fn, options) { const { times = 3, timeout = 0 } = options || {}; - return Promisie.iterate(utilities.retry(fn, { times, timeout }), null); + return Promisie.iterate(utilities.retry(fn, { times, timeout }), null) + .then(result => { + const { __isRejected, e, value } = result; + if (__isRejected) { + return Promisie.reject(e); + } + return Promisie.resolve(value); + }); } } -// const p = Promisie; -// export default p; diff --git a/build/utilities/index.d.ts b/build/utilities/index.d.ts index 4dfcac1..e81e751 100644 --- a/build/utilities/index.d.ts +++ b/build/utilities/index.d.ts @@ -5,6 +5,7 @@ import settle from './settle'; import iterator from './iterator'; import doWhilst from './dowhilst'; import retry from './retry'; +import series from './series'; declare const _default: { safeAssign: typeof safeAssign; map: typeof map; @@ -14,5 +15,6 @@ declare const _default: { iterator: typeof iterator; doWhilst: typeof doWhilst; retry: typeof retry; + series: typeof series; }; export default _default; diff --git a/build/utilities/index.js b/build/utilities/index.js index fd6125a..2f49cf2 100644 --- a/build/utilities/index.js +++ b/build/utilities/index.js @@ -5,6 +5,7 @@ import settle from './settle'; import iterator from './iterator'; import doWhilst from './dowhilst'; import retry from './retry'; +import series from './series'; export default { safeAssign, map, @@ -14,4 +15,5 @@ export default { iterator, doWhilst, retry, + series, }; diff --git a/build/utilities/iterator.d.ts b/build/utilities/iterator.d.ts index 50cf247..13521da 100644 --- a/build/utilities/iterator.d.ts +++ b/build/utilities/iterator.d.ts @@ -1 +1 @@ -export default function iterator(generator: Generator, cb: (...args: any[]) => void): (state: any) => void; +export default function iterator(generator: Generator): (state: any, cb: (...args: any[]) => void) => void; diff --git a/build/utilities/iterator.js b/build/utilities/iterator.js index 24a4e93..de6d64b 100644 --- a/build/utilities/iterator.js +++ b/build/utilities/iterator.js @@ -1,5 +1,5 @@ -export default function iterator(generator, cb) { - return function iterate(state) { +export default function iterator(generator) { + return function iterate(state, cb) { let current; try { current = generator.next(state); @@ -13,11 +13,11 @@ export default function iterator(generator, cb) { const { done, value } = current || { done: true, value: null }; if (!done) { if (value && typeof value.then === 'function' && typeof value.catch === 'function') { - value.then(iterate, cb); + value.then((next) => iterate(next, cb), cb); } else { let timeout = setTimeout(() => { - iterate(value); + iterate(value, cb); clearTimeout(timeout); }, 0); } diff --git a/build/utilities/parallel.js b/build/utilities/parallel.js index fe74f4d..3858f16 100644 --- a/build/utilities/parallel.js +++ b/build/utilities/parallel.js @@ -11,7 +11,7 @@ export default function parallel(fns, args, concurrency, cb) { const params = args; return Promise.all([operation(...params), key]); } - return [operation(args), key]; + return Promise.all([operation(args), key]); } return [operation, key]; }, @@ -28,7 +28,7 @@ export default function parallel(fns, args, concurrency, cb) { }, }); const p = queue - .insert(...Object.keys(fns).map(key => [fns[key], key])) + .insert(...Object.keys(fns).map(key => ({ operation: fns[key], key }))) .resolve(); return p .then(result => callback(null, result)) @@ -40,7 +40,7 @@ export function handleRecursiveParallel(fns) { result[key] = () => (Promisie.parallel(handleRecursiveParallel(fns[key]))); } else { - result[key] = key; + result[key] = fns[key]; } return result; }, {}); diff --git a/build/utilities/queue.js b/build/utilities/queue.js index d2935f6..eee7d55 100644 --- a/build/utilities/queue.js +++ b/build/utilities/queue.js @@ -79,7 +79,7 @@ function handleResolve(resolve, reject) { current.resolve(current.value) .then(result => { if (--this.active === 0 && !this.current) - resolve(decompress(this.root)); + resolve(this.decompress(this.root)); else this.resolve(resolve, reject); }, e => { diff --git a/build/utilities/retry.js b/build/utilities/retry.js index 6471faf..dbe52c6 100644 --- a/build/utilities/retry.js +++ b/build/utilities/retry.js @@ -23,15 +23,15 @@ export default function makeRetryGenerator(fn, options) { if (invoked && typeof invoked.then === 'function' && typeof invoked.catch === 'function') { yield invoked .then((result) => { - current = result; + current = { __isRejected: false, e: null, value: result }; return current; }, (e) => { - current = { __isRejected: true, e }; + current = { __isRejected: true, e, value: null }; return current; }); } else { - current = invoked; + current = { __isRejected: false, e: null, value: invoked }; yield current; } } while (times diff --git a/build/utilities/settle.js b/build/utilities/settle.js index 777141f..8f7efcd 100644 --- a/build/utilities/settle.js +++ b/build/utilities/settle.js @@ -10,7 +10,7 @@ export default function settle(fns, concurrency, cb) { try { const invoked = operation(); if (invoked && typeof invoked.then === 'function' && typeof invoked.catch === 'function') { - invoked + return invoked .then((result) => { fulfilled.push({ value: result, status: 'fulfilled' }); }, (err) => { diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 80984e5..0b26d3b 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"utilities/safe-assign\"","url":"modules/_utilities_safe_assign_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":64,"name":"safeAssign","url":"modules/_utilities_safe_assign_.html#safeassign","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"utilities/safe-assign\""},{"id":2,"kind":1,"name":"\"utilities/queue\"","url":"modules/_utilities_queue_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"QueueNodeOptions","url":"interfaces/_utilities_queue_.queuenodeoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":4,"kind":1024,"name":"action","url":"interfaces/_utilities_queue_.queuenodeoptions.html#action","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":5,"kind":1024,"name":"timeout","url":"interfaces/_utilities_queue_.queuenodeoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":6,"kind":1024,"name":"index","url":"interfaces/_utilities_queue_.queuenodeoptions.html#index","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":7,"kind":1024,"name":"value","url":"interfaces/_utilities_queue_.queuenodeoptions.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":8,"kind":128,"name":"QueueNode","url":"classes/_utilities_queue_.queuenode.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":9,"kind":1024,"name":"action","url":"classes/_utilities_queue_.queuenode.html#action","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":10,"kind":1024,"name":"timeout","url":"classes/_utilities_queue_.queuenode.html#timeout","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":11,"kind":1024,"name":"index","url":"classes/_utilities_queue_.queuenode.html#index","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":12,"kind":1024,"name":"value","url":"classes/_utilities_queue_.queuenode.html#value","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":13,"kind":1024,"name":"fulfill","url":"classes/_utilities_queue_.queuenode.html#fulfill","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":14,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queuenode.html#fulfill.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".QueueNode.fulfill"},{"id":15,"kind":1024,"name":"reject","url":"classes/_utilities_queue_.queuenode.html#reject","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":16,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queuenode.html#reject.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".QueueNode.reject"},{"id":17,"kind":1024,"name":"next","url":"classes/_utilities_queue_.queuenode.html#next","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":18,"kind":1024,"name":"[IS_PENDING]","url":"classes/_utilities_queue_.queuenode.html#_is_pending_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":19,"kind":1024,"name":"[IS_FULFILLED]","url":"classes/_utilities_queue_.queuenode.html#_is_fulfilled_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":20,"kind":1024,"name":"[IS_REJECTED]","url":"classes/_utilities_queue_.queuenode.html#_is_rejected_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":21,"kind":512,"name":"constructor","url":"classes/_utilities_queue_.queuenode.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":22,"kind":2048,"name":"resolve","url":"classes/_utilities_queue_.queuenode.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":23,"kind":256,"name":"QueueOptions","url":"interfaces/_utilities_queue_.queueoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":24,"kind":1024,"name":"action","url":"interfaces/_utilities_queue_.queueoptions.html#action","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":25,"kind":1024,"name":"concurrency","url":"interfaces/_utilities_queue_.queueoptions.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":26,"kind":1024,"name":"timeout","url":"interfaces/_utilities_queue_.queueoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":27,"kind":1024,"name":"values","url":"interfaces/_utilities_queue_.queueoptions.html#values","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":28,"kind":1024,"name":"decompress","url":"interfaces/_utilities_queue_.queueoptions.html#decompress","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":29,"kind":128,"name":"Queue","url":"classes/_utilities_queue_.queue.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":30,"kind":1024,"name":"action","url":"classes/_utilities_queue_.queue.html#action","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":31,"kind":1024,"name":"concurrency","url":"classes/_utilities_queue_.queue.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":32,"kind":1024,"name":"timeout","url":"classes/_utilities_queue_.queue.html#timeout","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":33,"kind":1024,"name":"values","url":"classes/_utilities_queue_.queue.html#values","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":34,"kind":1024,"name":"active","url":"classes/_utilities_queue_.queue.html#active","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":35,"kind":1024,"name":"current","url":"classes/_utilities_queue_.queue.html#current","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":36,"kind":1024,"name":"[IS_PAUSED]","url":"classes/_utilities_queue_.queue.html#_is_paused_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":37,"kind":1024,"name":"[IS_REJECTED]","url":"classes/_utilities_queue_.queue.html#_is_rejected_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":38,"kind":1024,"name":"root","url":"classes/_utilities_queue_.queue.html#root","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":39,"kind":1024,"name":"length","url":"classes/_utilities_queue_.queue.html#length","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":40,"kind":1024,"name":"decompress","url":"classes/_utilities_queue_.queue.html#decompress","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":41,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queue.html#decompress.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".Queue.decompress"},{"id":42,"kind":512,"name":"constructor","url":"classes/_utilities_queue_.queue.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":43,"kind":2048,"name":"insert","url":"classes/_utilities_queue_.queue.html#insert","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":44,"kind":2048,"name":"resolve","url":"classes/_utilities_queue_.queue.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":45,"kind":32,"name":"IS_PENDING","url":"modules/_utilities_queue_.html#is_pending","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":46,"kind":32,"name":"IS_FULFILLED","url":"modules/_utilities_queue_.html#is_fulfilled","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":47,"kind":32,"name":"IS_REJECTED","url":"modules/_utilities_queue_.html#is_rejected","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":48,"kind":32,"name":"IS_PAUSED","url":"modules/_utilities_queue_.html#is_paused","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":49,"kind":64,"name":"fulfill","url":"modules/_utilities_queue_.html#fulfill","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":50,"kind":64,"name":"reject","url":"modules/_utilities_queue_.html#reject","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":51,"kind":64,"name":"decompress","url":"modules/_utilities_queue_.html#decompress","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":52,"kind":64,"name":"handleResolve","url":"modules/_utilities_queue_.html#handleresolve","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":53,"kind":1,"name":"\"utilities/map\"","url":"modules/_utilities_map_.html","classes":"tsd-kind-external-module"},{"id":54,"kind":64,"name":"map","url":"modules/_utilities_map_.html#map","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/map\""},{"id":55,"kind":1,"name":"\"utilities/parallel\"","url":"modules/_utilities_parallel_.html","classes":"tsd-kind-external-module"},{"id":56,"kind":256,"name":"ParallelOperation","url":"interfaces/_utilities_parallel_.paralleloperation.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/parallel\""},{"id":57,"kind":1024,"name":"operation","url":"interfaces/_utilities_parallel_.paralleloperation.html#operation","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"utilities/parallel\".ParallelOperation"},{"id":58,"kind":1024,"name":"key","url":"interfaces/_utilities_parallel_.paralleloperation.html#key","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"utilities/parallel\".ParallelOperation"},{"id":59,"kind":64,"name":"parallel","url":"modules/_utilities_parallel_.html#parallel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/parallel\""},{"id":60,"kind":64,"name":"handleRecursiveParallel","url":"modules/_utilities_parallel_.html#handlerecursiveparallel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/parallel\""},{"id":61,"kind":1,"name":"\"utilities/settle\"","url":"modules/_utilities_settle_.html","classes":"tsd-kind-external-module"},{"id":62,"kind":256,"name":"SettleValues","url":"interfaces/_utilities_settle_.settlevalues.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":63,"kind":1024,"name":"fulfilled","url":"interfaces/_utilities_settle_.settlevalues.html#fulfilled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".SettleValues"},{"id":64,"kind":1024,"name":"rejected","url":"interfaces/_utilities_settle_.settlevalues.html#rejected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".SettleValues"},{"id":65,"kind":256,"name":"Fulfilled","url":"interfaces/_utilities_settle_.fulfilled.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":66,"kind":1024,"name":"value","url":"interfaces/_utilities_settle_.fulfilled.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Fulfilled"},{"id":67,"kind":1024,"name":"status","url":"interfaces/_utilities_settle_.fulfilled.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Fulfilled"},{"id":68,"kind":256,"name":"Rejected","url":"interfaces/_utilities_settle_.rejected.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/settle\""},{"id":69,"kind":1024,"name":"value","url":"interfaces/_utilities_settle_.rejected.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Rejected"},{"id":70,"kind":1024,"name":"status","url":"interfaces/_utilities_settle_.rejected.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Rejected"},{"id":71,"kind":64,"name":"settle","url":"modules/_utilities_settle_.html#settle","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":72,"kind":1,"name":"\"utilities/iterator\"","url":"modules/_utilities_iterator_.html","classes":"tsd-kind-external-module"},{"id":73,"kind":64,"name":"iterator","url":"modules/_utilities_iterator_.html#iterator","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"utilities/iterator\""},{"id":74,"kind":1,"name":"\"utilities/dowhilst\"","url":"modules/_utilities_dowhilst_.html","classes":"tsd-kind-external-module"},{"id":75,"kind":64,"name":"makeDoWhilstGenerator","url":"modules/_utilities_dowhilst_.html#makedowhilstgenerator","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/dowhilst\""},{"id":76,"kind":1,"name":"\"utilities/retry\"","url":"modules/_utilities_retry_.html","classes":"tsd-kind-external-module"},{"id":77,"kind":64,"name":"timeout","url":"modules/_utilities_retry_.html#timeout","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/retry\""},{"id":78,"kind":64,"name":"makeRetryGenerator","url":"modules/_utilities_retry_.html#makeretrygenerator","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/retry\""},{"id":79,"kind":1,"name":"\"utilities/index\"","url":"modules/_utilities_index_.html","classes":"tsd-kind-external-module"},{"id":80,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":81,"kind":256,"name":"PromisifyAllOptions","url":"interfaces/_index_.promisifyalloptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":82,"kind":1024,"name":"recursive","url":"interfaces/_index_.promisifyalloptions.html#recursive","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".PromisifyAllOptions"},{"id":83,"kind":1024,"name":"readonly","url":"interfaces/_index_.promisifyalloptions.html#readonly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".PromisifyAllOptions"},{"id":84,"kind":256,"name":"ParallelOptions","url":"interfaces/_index_.paralleloptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":85,"kind":1024,"name":"recursive","url":"interfaces/_index_.paralleloptions.html#recursive","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".ParallelOptions"},{"id":86,"kind":1024,"name":"concurrency","url":"interfaces/_index_.paralleloptions.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".ParallelOptions"},{"id":87,"kind":256,"name":"RetryOptions","url":"interfaces/_index_.retryoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":88,"kind":1024,"name":"times","url":"interfaces/_index_.retryoptions.html#times","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".RetryOptions"},{"id":89,"kind":1024,"name":"timeout","url":"interfaces/_index_.retryoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".RetryOptions"},{"id":90,"kind":256,"name":"PromisifyAllObjectParam","url":"interfaces/_index_.promisifyallobjectparam.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":91,"kind":256,"name":"PromisifyAllObjectResult","url":"interfaces/_index_.promisifyallobjectresult.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":92,"kind":128,"name":"Promisie","url":"classes/_index_.promisie.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"index\""},{"id":93,"kind":512,"name":"constructor","url":"classes/_index_.promisie.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"index\".Promisie"},{"id":94,"kind":2048,"name":"promisify","url":"classes/_index_.promisie.html#promisify","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":95,"kind":2048,"name":"promisifyAll","url":"classes/_index_.promisie.html#promisifyall","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":96,"kind":2048,"name":"series","url":"classes/_index_.promisie.html#series","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":97,"kind":2048,"name":"pipe","url":"classes/_index_.promisie.html#pipe","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":98,"kind":2048,"name":"compose","url":"classes/_index_.promisie.html#compose","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":99,"kind":2048,"name":"map","url":"classes/_index_.promisie.html#map","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":100,"kind":2048,"name":"each","url":"classes/_index_.promisie.html#each","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":101,"kind":2048,"name":"parallel","url":"classes/_index_.promisie.html#parallel","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":102,"kind":2048,"name":"settle","url":"classes/_index_.promisie.html#settle","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":103,"kind":2048,"name":"iterate","url":"classes/_index_.promisie.html#iterate","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":104,"kind":2048,"name":"doWhilst","url":"classes/_index_.promisie.html#dowhilst","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":105,"kind":2048,"name":"sleep","url":"classes/_index_.promisie.html#sleep","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":106,"kind":2048,"name":"retry","url":"classes/_index_.promisie.html#retry","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":107,"kind":2048,"name":"then","url":"classes/_index_.promisie.html#then","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"\"index\".Promisie"},{"id":108,"kind":2048,"name":"catch","url":"classes/_index_.promisie.html#catch","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"\"index\".Promisie"},{"id":109,"kind":1024,"name":"Promise","url":"classes/_index_.promisie.html#promise","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":110,"kind":1024,"name":"[Symbol.toStringTag]","url":"classes/_index_.promisie.html#_symbol_tostringtag_","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"index\".Promisie"},{"id":111,"kind":2048,"name":"finally","url":"classes/_index_.promisie.html#finally","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"index\".Promisie"},{"id":112,"kind":64,"name":"isNestedPromisifyAllObjectParam","url":"modules/_index_.html#isnestedpromisifyallobjectparam","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":113,"kind":64,"name":"setHandlers","url":"modules/_index_.html#sethandlers","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":114,"kind":2097152,"name":"thenables","url":"modules/_index_.html#thenables","classes":"tsd-kind-object-literal tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":115,"kind":64,"name":"try","url":"modules/_index_.html#thenables.try","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":116,"kind":64,"name":"spread","url":"modules/_index_.html#thenables.spread","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":117,"kind":64,"name":"map","url":"modules/_index_.html#thenables.map","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":118,"kind":64,"name":"each","url":"modules/_index_.html#thenables.each","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":119,"kind":64,"name":"settle","url":"modules/_index_.html#thenables.settle","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":120,"kind":64,"name":"retry","url":"modules/_index_.html#thenables.retry","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"},{"id":121,"kind":64,"name":"finally","url":"modules/_index_.html#thenables.finally","classes":"tsd-kind-function tsd-parent-kind-object-literal tsd-has-type-parameter tsd-is-not-exported","parent":"\"index\".thenables"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal"},"rows":[{"id":0,"kind":1,"name":"\"utilities/safe-assign\"","url":"modules/_utilities_safe_assign_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":64,"name":"safeAssign","url":"modules/_utilities_safe_assign_.html#safeassign","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"utilities/safe-assign\""},{"id":2,"kind":1,"name":"\"utilities/queue\"","url":"modules/_utilities_queue_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"QueueNodeOptions","url":"interfaces/_utilities_queue_.queuenodeoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":4,"kind":1024,"name":"action","url":"interfaces/_utilities_queue_.queuenodeoptions.html#action","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":5,"kind":1024,"name":"timeout","url":"interfaces/_utilities_queue_.queuenodeoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":6,"kind":1024,"name":"index","url":"interfaces/_utilities_queue_.queuenodeoptions.html#index","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":7,"kind":1024,"name":"value","url":"interfaces/_utilities_queue_.queuenodeoptions.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueNodeOptions"},{"id":8,"kind":128,"name":"QueueNode","url":"classes/_utilities_queue_.queuenode.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":9,"kind":1024,"name":"action","url":"classes/_utilities_queue_.queuenode.html#action","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":10,"kind":1024,"name":"timeout","url":"classes/_utilities_queue_.queuenode.html#timeout","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":11,"kind":1024,"name":"index","url":"classes/_utilities_queue_.queuenode.html#index","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":12,"kind":1024,"name":"value","url":"classes/_utilities_queue_.queuenode.html#value","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":13,"kind":1024,"name":"fulfill","url":"classes/_utilities_queue_.queuenode.html#fulfill","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":14,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queuenode.html#fulfill.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".QueueNode.fulfill"},{"id":15,"kind":1024,"name":"reject","url":"classes/_utilities_queue_.queuenode.html#reject","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":16,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queuenode.html#reject.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".QueueNode.reject"},{"id":17,"kind":1024,"name":"next","url":"classes/_utilities_queue_.queuenode.html#next","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":18,"kind":1024,"name":"[IS_PENDING]","url":"classes/_utilities_queue_.queuenode.html#_is_pending_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":19,"kind":1024,"name":"[IS_FULFILLED]","url":"classes/_utilities_queue_.queuenode.html#_is_fulfilled_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":20,"kind":1024,"name":"[IS_REJECTED]","url":"classes/_utilities_queue_.queuenode.html#_is_rejected_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":21,"kind":512,"name":"constructor","url":"classes/_utilities_queue_.queuenode.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":22,"kind":2048,"name":"resolve","url":"classes/_utilities_queue_.queuenode.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".QueueNode"},{"id":23,"kind":256,"name":"QueueOptions","url":"interfaces/_utilities_queue_.queueoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":24,"kind":1024,"name":"action","url":"interfaces/_utilities_queue_.queueoptions.html#action","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":25,"kind":1024,"name":"concurrency","url":"interfaces/_utilities_queue_.queueoptions.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":26,"kind":1024,"name":"timeout","url":"interfaces/_utilities_queue_.queueoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":27,"kind":1024,"name":"values","url":"interfaces/_utilities_queue_.queueoptions.html#values","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":28,"kind":1024,"name":"decompress","url":"interfaces/_utilities_queue_.queueoptions.html#decompress","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/queue\".QueueOptions"},{"id":29,"kind":128,"name":"Queue","url":"classes/_utilities_queue_.queue.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"utilities/queue\""},{"id":30,"kind":1024,"name":"action","url":"classes/_utilities_queue_.queue.html#action","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":31,"kind":1024,"name":"concurrency","url":"classes/_utilities_queue_.queue.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":32,"kind":1024,"name":"timeout","url":"classes/_utilities_queue_.queue.html#timeout","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":33,"kind":1024,"name":"values","url":"classes/_utilities_queue_.queue.html#values","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":34,"kind":1024,"name":"active","url":"classes/_utilities_queue_.queue.html#active","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":35,"kind":1024,"name":"current","url":"classes/_utilities_queue_.queue.html#current","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":36,"kind":1024,"name":"[IS_PAUSED]","url":"classes/_utilities_queue_.queue.html#_is_paused_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":37,"kind":1024,"name":"[IS_REJECTED]","url":"classes/_utilities_queue_.queue.html#_is_rejected_","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":38,"kind":1024,"name":"root","url":"classes/_utilities_queue_.queue.html#root","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":39,"kind":1024,"name":"length","url":"classes/_utilities_queue_.queue.html#length","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":40,"kind":1024,"name":"decompress","url":"classes/_utilities_queue_.queue.html#decompress","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":41,"kind":65536,"name":"__type","url":"classes/_utilities_queue_.queue.html#decompress.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"\"utilities/queue\".Queue.decompress"},{"id":42,"kind":512,"name":"constructor","url":"classes/_utilities_queue_.queue.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":43,"kind":2048,"name":"insert","url":"classes/_utilities_queue_.queue.html#insert","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":44,"kind":2048,"name":"resolve","url":"classes/_utilities_queue_.queue.html#resolve","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"utilities/queue\".Queue"},{"id":45,"kind":32,"name":"IS_PENDING","url":"modules/_utilities_queue_.html#is_pending","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":46,"kind":32,"name":"IS_FULFILLED","url":"modules/_utilities_queue_.html#is_fulfilled","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":47,"kind":32,"name":"IS_REJECTED","url":"modules/_utilities_queue_.html#is_rejected","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":48,"kind":32,"name":"IS_PAUSED","url":"modules/_utilities_queue_.html#is_paused","classes":"tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":49,"kind":64,"name":"fulfill","url":"modules/_utilities_queue_.html#fulfill","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":50,"kind":64,"name":"reject","url":"modules/_utilities_queue_.html#reject","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":51,"kind":64,"name":"decompress","url":"modules/_utilities_queue_.html#decompress","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":52,"kind":64,"name":"handleResolve","url":"modules/_utilities_queue_.html#handleresolve","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/queue\""},{"id":53,"kind":1,"name":"\"utilities/map\"","url":"modules/_utilities_map_.html","classes":"tsd-kind-external-module"},{"id":54,"kind":64,"name":"map","url":"modules/_utilities_map_.html#map","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/map\""},{"id":55,"kind":1,"name":"\"utilities/parallel\"","url":"modules/_utilities_parallel_.html","classes":"tsd-kind-external-module"},{"id":56,"kind":256,"name":"ParallelOperation","url":"interfaces/_utilities_parallel_.paralleloperation.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/parallel\""},{"id":57,"kind":1024,"name":"operation","url":"interfaces/_utilities_parallel_.paralleloperation.html#operation","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"utilities/parallel\".ParallelOperation"},{"id":58,"kind":1024,"name":"key","url":"interfaces/_utilities_parallel_.paralleloperation.html#key","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"\"utilities/parallel\".ParallelOperation"},{"id":59,"kind":64,"name":"parallel","url":"modules/_utilities_parallel_.html#parallel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/parallel\""},{"id":60,"kind":64,"name":"handleRecursiveParallel","url":"modules/_utilities_parallel_.html#handlerecursiveparallel","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/parallel\""},{"id":61,"kind":1,"name":"\"utilities/settle\"","url":"modules/_utilities_settle_.html","classes":"tsd-kind-external-module"},{"id":62,"kind":256,"name":"SettleValues","url":"interfaces/_utilities_settle_.settlevalues.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":63,"kind":1024,"name":"fulfilled","url":"interfaces/_utilities_settle_.settlevalues.html#fulfilled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".SettleValues"},{"id":64,"kind":1024,"name":"rejected","url":"interfaces/_utilities_settle_.settlevalues.html#rejected","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".SettleValues"},{"id":65,"kind":256,"name":"Fulfilled","url":"interfaces/_utilities_settle_.fulfilled.html","classes":"tsd-kind-interface tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":66,"kind":1024,"name":"value","url":"interfaces/_utilities_settle_.fulfilled.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Fulfilled"},{"id":67,"kind":1024,"name":"status","url":"interfaces/_utilities_settle_.fulfilled.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Fulfilled"},{"id":68,"kind":256,"name":"Rejected","url":"interfaces/_utilities_settle_.rejected.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"utilities/settle\""},{"id":69,"kind":1024,"name":"value","url":"interfaces/_utilities_settle_.rejected.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Rejected"},{"id":70,"kind":1024,"name":"status","url":"interfaces/_utilities_settle_.rejected.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"utilities/settle\".Rejected"},{"id":71,"kind":64,"name":"settle","url":"modules/_utilities_settle_.html#settle","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/settle\""},{"id":72,"kind":1,"name":"\"utilities/iterator\"","url":"modules/_utilities_iterator_.html","classes":"tsd-kind-external-module"},{"id":73,"kind":64,"name":"iterator","url":"modules/_utilities_iterator_.html#iterator","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"utilities/iterator\""},{"id":74,"kind":1,"name":"\"utilities/dowhilst\"","url":"modules/_utilities_dowhilst_.html","classes":"tsd-kind-external-module"},{"id":75,"kind":64,"name":"makeDoWhilstGenerator","url":"modules/_utilities_dowhilst_.html#makedowhilstgenerator","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/dowhilst\""},{"id":76,"kind":1,"name":"\"utilities/retry\"","url":"modules/_utilities_retry_.html","classes":"tsd-kind-external-module"},{"id":77,"kind":64,"name":"timeout","url":"modules/_utilities_retry_.html#timeout","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/retry\""},{"id":78,"kind":64,"name":"makeRetryGenerator","url":"modules/_utilities_retry_.html#makeretrygenerator","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/retry\""},{"id":79,"kind":1,"name":"\"utilities/series\"","url":"modules/_utilities_series_.html","classes":"tsd-kind-external-module"},{"id":80,"kind":64,"name":"handleMap","url":"modules/_utilities_series_.html#handlemap","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"utilities/series\""},{"id":81,"kind":64,"name":"makeSeriesGenerator","url":"modules/_utilities_series_.html#makeseriesgenerator","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"utilities/series\""},{"id":82,"kind":1,"name":"\"utilities/index\"","url":"modules/_utilities_index_.html","classes":"tsd-kind-external-module"},{"id":83,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"},{"id":84,"kind":256,"name":"PromisifyAllOptions","url":"interfaces/_index_.promisifyalloptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":85,"kind":1024,"name":"recursive","url":"interfaces/_index_.promisifyalloptions.html#recursive","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".PromisifyAllOptions"},{"id":86,"kind":1024,"name":"readonly","url":"interfaces/_index_.promisifyalloptions.html#readonly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".PromisifyAllOptions"},{"id":87,"kind":256,"name":"ParallelOptions","url":"interfaces/_index_.paralleloptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":88,"kind":1024,"name":"recursive","url":"interfaces/_index_.paralleloptions.html#recursive","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".ParallelOptions"},{"id":89,"kind":1024,"name":"concurrency","url":"interfaces/_index_.paralleloptions.html#concurrency","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".ParallelOptions"},{"id":90,"kind":256,"name":"RetryOptions","url":"interfaces/_index_.retryoptions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":91,"kind":1024,"name":"times","url":"interfaces/_index_.retryoptions.html#times","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".RetryOptions"},{"id":92,"kind":1024,"name":"timeout","url":"interfaces/_index_.retryoptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"index\".RetryOptions"},{"id":93,"kind":256,"name":"PromisifyAllObjectParam","url":"interfaces/_index_.promisifyallobjectparam.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":94,"kind":256,"name":"PromisifyAllObjectResult","url":"interfaces/_index_.promisifyallobjectresult.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"index\""},{"id":95,"kind":128,"name":"Promisie","url":"classes/_index_.promisie.html","classes":"tsd-kind-class tsd-parent-kind-external-module tsd-has-type-parameter","parent":"\"index\""},{"id":96,"kind":512,"name":"constructor","url":"classes/_index_.promisie.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"index\".Promisie"},{"id":97,"kind":2048,"name":"then","url":"classes/_index_.promisie.html#then","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"\"index\".Promisie"},{"id":98,"kind":2048,"name":"try","url":"classes/_index_.promisie.html#try","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":99,"kind":2048,"name":"spread","url":"classes/_index_.promisie.html#spread","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":100,"kind":2048,"name":"map","url":"classes/_index_.promisie.html#map","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":101,"kind":2048,"name":"each","url":"classes/_index_.promisie.html#each","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":102,"kind":2048,"name":"settle","url":"classes/_index_.promisie.html#settle","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":103,"kind":2048,"name":"retry","url":"classes/_index_.promisie.html#retry","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"index\".Promisie"},{"id":104,"kind":2048,"name":"finally","url":"classes/_index_.promisie.html#finally","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"\"index\".Promisie"},{"id":105,"kind":2048,"name":"promisify","url":"classes/_index_.promisie.html#promisify","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":106,"kind":2048,"name":"promisifyAll","url":"classes/_index_.promisie.html#promisifyall","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":107,"kind":2048,"name":"series","url":"classes/_index_.promisie.html#series","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":108,"kind":2048,"name":"pipe","url":"classes/_index_.promisie.html#pipe","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":109,"kind":2048,"name":"compose","url":"classes/_index_.promisie.html#compose","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":110,"kind":2048,"name":"map","url":"classes/_index_.promisie.html#map-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":111,"kind":2048,"name":"each","url":"classes/_index_.promisie.html#each-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":112,"kind":2048,"name":"parallel","url":"classes/_index_.promisie.html#parallel","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":113,"kind":2048,"name":"settle","url":"classes/_index_.promisie.html#settle-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":114,"kind":2048,"name":"iterate","url":"classes/_index_.promisie.html#iterate","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":115,"kind":2048,"name":"doWhilst","url":"classes/_index_.promisie.html#dowhilst","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":116,"kind":2048,"name":"sleep","url":"classes/_index_.promisie.html#sleep","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":117,"kind":2048,"name":"retry","url":"classes/_index_.promisie.html#retry-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"index\".Promisie"},{"id":118,"kind":2048,"name":"catch","url":"classes/_index_.promisie.html#catch","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"\"index\".Promisie"},{"id":119,"kind":1024,"name":"Promise","url":"classes/_index_.promisie.html#promise","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"\"index\".Promisie"},{"id":120,"kind":1024,"name":"[Symbol.toStringTag]","url":"classes/_index_.promisie.html#_symbol_tostringtag_","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"\"index\".Promisie"},{"id":121,"kind":64,"name":"isNestedPromisifyAllObjectParam","url":"modules/_index_.html#isnestedpromisifyallobjectparam","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""},{"id":122,"kind":64,"name":"setHandlers","url":"modules/_index_.html#sethandlers","classes":"tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"index\""}]}; \ No newline at end of file diff --git a/docs/classes/_index_.promisie.html b/docs/classes/_index_.promisie.html index cd5a5a4..1b0fd6f 100644 --- a/docs/classes/_index_.promisie.html +++ b/docs/classes/_index_.promisie.html @@ -115,20 +115,26 @@

Properties

Methods

@@ -147,7 +153,7 @@

constructor

  • Parameters

    @@ -283,85 +289,288 @@

    Returns -
    +
    + +

    each

    +
      +
    • each<TSuccess, TFailure>(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | number, concurrency?: undefined | number): Promisie<TSuccess[]>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((datas: T) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | number
        +
      • +
      • +
        Optional concurrency: undefined | number
        +
      • +
      +

      Returns Promisie<TSuccess[]>

      +
    • +
    +
    +

    finally

    -
      -
    • finally(onfinally?: (() => void) | undefined | null): Promise<T>
    • +
        +
      • finally<TSuccess>(onfulfilled?: (() => any) | null | undefined): Promisie<TSuccess>
      • -
        -
        -

        Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - resolved value cannot be modified from the callback.

        -
        -
        +

        Type parameters

        +
          +
        • +

          TSuccess

          +
        • +

        Parameters

        • -
          Optional onfinally: (() => void) | undefined | null
          -
          -

          The callback to execute when the Promise is settled (fulfilled or rejected).

          -
          +
          Optional onfulfilled: (() => any) | null | undefined
        -

        Returns Promise<T>

        -

        A Promise for the completion of the callback.

        +

        Returns Promisie<TSuccess>

    -
    +
    + +

    map

    +
      +
    • map<TSuccess, TFailure>(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | number, concurrency?: undefined | number): Promisie<TSuccess[]>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((datas: T) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | number
        +
      • +
      • +
        Optional concurrency: undefined | number
        +
      • +
      +

      Returns Promisie<TSuccess[]>

      +
    • +
    +
    +
    + +

    retry

    +
      +
    • retry<TSuccess, TFailure>(onfulfilled?: ((args: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | RetryOptions, options?: RetryOptions): Promisie<TSuccess>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((args: T) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined | RetryOptions
        +
      • +
      • +
        Optional options: RetryOptions
        +
      • +
      +

      Returns Promisie<TSuccess>

      +
    • +
    +
    +
    + +

    settle

    +
      +
    • settle<TSuccess, TFailure>(onfulfilled?: ((datas: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined): Promisie<SettleValues<TSuccess>>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((datas: T) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined
        +
      • +
      +

      Returns Promisie<SettleValues<TSuccess>>

      +
    • +
    +
    +
    + +

    spread

    +
      +
    • spread<TSuccess, TFailure>(onfulfilled?: ((...args: T[]) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined): Promisie<TSuccess>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((...args: T[]) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined
        +
      • +
      +

      Returns Promisie<TSuccess>

      +
    • +
    +
    +

    then

    -
      -
    • then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>
    • +
        +
      • then<TSuccess, TFailure>(onfulfilled?: ((value: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined): Promisie<TSuccess>
      • -
        -
        -

        Attaches callbacks for the resolution and/or rejection of the Promise.

        -
        -

        Type parameters

        • -

          TResult1

          +

          TSuccess

        • -

          TResult2

          +

          TFailure

        Parameters

        • -
          Optional onfulfilled: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null
          -
          -

          The callback to execute when the Promise is resolved.

          -
          +
          Optional onfulfilled: ((value: T) => any) | null | undefined
        • -
          Optional onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
          -
          -

          The callback to execute when the Promise is rejected.

          -
          +
          Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined
        -

        Returns Promise<TResult1 | TResult2>

        -

        A Promise for the completion of which ever callback is executed.

        +

        Returns Promisie<TSuccess>

        +
      • +
      +
    +
    + +

    try

    +
      +
    • try<TSuccess, TFailure>(onfulfilled?: ((value: T) => any) | null | undefined, onrejected?: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined): Promisie<TSuccess>
    • +
    +
      +
    • + +

      Type parameters

      +
        +
      • +

        TSuccess

        +
      • +
      • +

        TFailure

        +
      • +
      +

      Parameters

      +
        +
      • +
        Optional onfulfilled: ((value: T) => any) | null | undefined
        +
      • +
      • +
        Optional onrejected: ((reason: any) => TFailure | PromiseLike<TFailure>) | null | undefined
        +
      • +
      +

      Returns Promisie<TSuccess>

    @@ -369,13 +578,13 @@

    Returns

    Static compose

      -
    • compose<T>(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promise<T>
    • +
    • compose<T>(fns: Array<(...args: any[]) => any>): (...args: any[]) => Promisie<T>
    -

    Returns (...args: any[]) => Promise<T>

    +

    Returns (...args: any[]) => Promisie<T>

      • @@ -404,7 +613,7 @@

        Parameters

        Rest ...args: any[]
      -

      Returns Promise<T>

      +

      Returns Promisie<T>

  • @@ -422,7 +631,7 @@

    Static doWhilst

  • Type parameters

    @@ -475,7 +684,7 @@

    Returns - +

    Static each

    diff --git a/docs/interfaces/_index_.promisifyallobjectresult.html b/docs/interfaces/_index_.promisifyallobjectresult.html index b8cd220..dbafec2 100644 --- a/docs/interfaces/_index_.promisifyallobjectresult.html +++ b/docs/interfaces/_index_.promisifyallobjectresult.html @@ -79,7 +79,7 @@

    Hierarchy

    Indexable

    -
    [key: string]: (<T>(...args: any[]) => Promisie<T>) | PromisifyAllObjectResult
    +
    [key: string]: (<T>(...args: any[]) => Promisie<T>) | any
  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -112,6 +115,9 @@

    Indexable

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • @@ -147,9 +153,6 @@

    Indexable

  • setHandlers
  • -
  • - thenables -
  • diff --git a/docs/interfaces/_index_.promisifyalloptions.html b/docs/interfaces/_index_.promisifyalloptions.html index ed661a3..40a8416 100644 --- a/docs/interfaces/_index_.promisifyalloptions.html +++ b/docs/interfaces/_index_.promisifyalloptions.html @@ -99,7 +99,7 @@

    Optional readonly

    readonly: undefined | false | true
    @@ -109,7 +109,7 @@

    Optional recursive

    recursive: undefined | false | true
    @@ -127,6 +127,9 @@

    Optional recursive

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -145,6 +148,9 @@

    Optional recursive

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • @@ -188,9 +194,6 @@

    Optional recursive

  • setHandlers
  • -
  • - thenables -
  • diff --git a/docs/interfaces/_index_.retryoptions.html b/docs/interfaces/_index_.retryoptions.html index ef94888..1dcaa30 100644 --- a/docs/interfaces/_index_.retryoptions.html +++ b/docs/interfaces/_index_.retryoptions.html @@ -99,7 +99,7 @@

    Optional timeout

    timeout: undefined | number
    @@ -109,7 +109,7 @@

    Optional times

    times: undefined | number
    @@ -127,6 +127,9 @@

    Optional times

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -145,6 +148,9 @@

    Optional times

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • @@ -188,9 +194,6 @@

    Optional times

  • setHandlers
  • -
  • - thenables -
  • diff --git a/docs/interfaces/_utilities_parallel_.paralleloperation.html b/docs/interfaces/_utilities_parallel_.paralleloperation.html index 97985ba..d98776e 100644 --- a/docs/interfaces/_utilities_parallel_.paralleloperation.html +++ b/docs/interfaces/_utilities_parallel_.paralleloperation.html @@ -99,7 +99,7 @@

    key

    key: string
    @@ -109,7 +109,7 @@

    operation

    operation: any
    @@ -127,6 +127,9 @@

    operation

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -145,6 +148,9 @@

    operation

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/interfaces/_utilities_queue_.queuenodeoptions.html b/docs/interfaces/_utilities_queue_.queuenodeoptions.html index 3021e9e..94616c5 100644 --- a/docs/interfaces/_utilities_queue_.queuenodeoptions.html +++ b/docs/interfaces/_utilities_queue_.queuenodeoptions.html @@ -101,7 +101,7 @@

    action

    action: any
    @@ -111,7 +111,7 @@

    index

    index: number
    @@ -121,7 +121,7 @@

    Optional timeout

    timeout: undefined | number
    @@ -131,7 +131,7 @@

    value

    value: any
    @@ -149,6 +149,9 @@

    value

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -167,6 +170,9 @@

    value

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/interfaces/_utilities_queue_.queueoptions.html b/docs/interfaces/_utilities_queue_.queueoptions.html index 4063a44..19ecbf9 100644 --- a/docs/interfaces/_utilities_queue_.queueoptions.html +++ b/docs/interfaces/_utilities_queue_.queueoptions.html @@ -102,7 +102,7 @@

    action

    action: any
    @@ -112,7 +112,7 @@

    Optional concurrency

    concurrency: undefined | number
    @@ -122,7 +122,7 @@

    Optional decompress

    decompress: undefined | ((data?: QueueNode) => any)
    @@ -132,7 +132,7 @@

    Optional timeout

    timeout: undefined | number
    @@ -142,7 +142,7 @@

    Optional values

    values: any[]
    @@ -160,6 +160,9 @@

    Optional values

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -178,6 +181,9 @@

    Optional values

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/interfaces/_utilities_settle_.fulfilled.html b/docs/interfaces/_utilities_settle_.fulfilled.html index 7caaba7..d3972f8 100644 --- a/docs/interfaces/_utilities_settle_.fulfilled.html +++ b/docs/interfaces/_utilities_settle_.fulfilled.html @@ -107,7 +107,7 @@

    status

    status: "fulfilled"
    @@ -117,7 +117,7 @@

    value

    value: T
    @@ -135,6 +135,9 @@

    value

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -153,6 +156,9 @@

    value

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/interfaces/_utilities_settle_.rejected.html b/docs/interfaces/_utilities_settle_.rejected.html index 3b84f87..072b982 100644 --- a/docs/interfaces/_utilities_settle_.rejected.html +++ b/docs/interfaces/_utilities_settle_.rejected.html @@ -99,7 +99,7 @@

    status

    status: "rejected"
    @@ -109,7 +109,7 @@

    value

    value: Error
    @@ -127,6 +127,9 @@

    value

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -145,6 +148,9 @@

    value

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/interfaces/_utilities_settle_.settlevalues.html b/docs/interfaces/_utilities_settle_.settlevalues.html index a9957aa..916642c 100644 --- a/docs/interfaces/_utilities_settle_.settlevalues.html +++ b/docs/interfaces/_utilities_settle_.settlevalues.html @@ -107,7 +107,7 @@

    fulfilled

    fulfilled: Fulfilled<T>[]
    @@ -117,7 +117,7 @@

    rejected

    rejected: Rejected[]
    @@ -135,6 +135,9 @@

    rejected

  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -153,6 +156,9 @@

    rejected

  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/modules/_index_.html b/docs/modules/_index_.html index 0614507..dc827a1 100644 --- a/docs/modules/_index_.html +++ b/docs/modules/_index_.html @@ -93,12 +93,6 @@

    Functions

  • setHandlers
  • -
    -

    Object literals

    - -
    @@ -114,7 +108,7 @@

    isNestedPromisifyAllObjectParam

  • Parameters

    @@ -137,7 +131,7 @@

    setHandlers

  • Parameters

    @@ -198,396 +192,6 @@

    Returns any -
    -

    Object literals

    -
    - -

    Const thenables

    -
    thenables: object
    - -
    - -

    each

    -
      -
    • each<T>(this: Promisie<any>, onSuccess: (...arg: any[]) => any, onFailure?: any, concurrency?: undefined | number): Promisie<T>
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (...arg: any[]) => any
        -
          -
        • -
            -
          • (...arg: any[]): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              Rest ...arg: any[]
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      • -
        Optional concurrency: undefined | number
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    - -

    finally

    -
      -
    • finally<T>(this: Promisie<any>, onSuccess: (arg?: any) => any): Promisie<T>
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (arg?: any) => any
        -
          -
        • -
            -
          • (arg?: any): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              Optional arg: any
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    - -

    map

    -
      -
    • map<T>(this: Promisie<any>, onSuccess: (...arg: any[]) => any, onFailure?: any, concurrency?: undefined | number): Promisie<T>
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (...arg: any[]) => any
        -
          -
        • -
            -
          • (...arg: any[]): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              Rest ...arg: any[]
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      • -
        Optional concurrency: undefined | number
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    - -

    retry

    - -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<T>
        -
      • -
      • -
        onSuccess: (arg: any) => any
        -
          -
        • -
            -
          • (arg: any): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              arg: any
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      • -
        Optional options: RetryOptions
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    - -

    settle

    - -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (arg: any) => any
        -
          -
        • -
            -
          • (arg: any): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              arg: any
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      -

      Returns Promisie<SettleValues<T>>

      -
    • -
    -
    -
    - -

    spread

    -
      -
    • spread<T>(this: Promisie<any>, onSuccess: (...arg: any[]) => any, onFailure?: any): Promisie<T>
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (...arg: any[]) => any
        -
          -
        • -
            -
          • (...arg: any[]): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              Rest ...arg: any[]
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    - -

    try

    -
      -
    • try<T>(this: Promisie<any>, onSuccess: (arg: any) => any, onFailure?: any): Promisie<T>
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        this: Promisie<any>
        -
      • -
      • -
        onSuccess: (arg: any) => any
        -
          -
        • -
            -
          • (arg: any): any
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              arg: any
              -
            • -
            -

            Returns any

            -
          • -
          -
        • -
        -
      • -
      • -
        Optional onFailure: any
        -
      • -
      -

      Returns Promisie<T>

      -
    • -
    -
    -
    -

  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -619,6 +226,9 @@

    Returns "utilities/safe-assign" +
  • + "utilities/series" +
  • "utilities/settle"
  • @@ -650,9 +260,6 @@

    Returns setHandlers -
  • - thenables -
  • diff --git a/docs/modules/_utilities_dowhilst_.html b/docs/modules/_utilities_dowhilst_.html index 832aafd..51a0ac2 100644 --- a/docs/modules/_utilities_dowhilst_.html +++ b/docs/modules/_utilities_dowhilst_.html @@ -91,7 +91,7 @@

    makeDoWhilstGenerator

  • Type parameters

    @@ -169,6 +169,9 @@

    Returns Generator
  • "utilities/dowhilst"
  • +
  • + "utilities/index" +
  • "utilities/iterator"
  • @@ -187,6 +190,9 @@

    Returns Generator
  • "utilities/safe-assign"
  • +
  • + "utilities/series" +
  • "utilities/settle"
  • diff --git a/docs/modules/_utilities_index_.html b/docs/modules/_utilities_index_.html index 73629b0..8e84a41 100644 --- a/docs/modules/_utilities_index_.html +++ b/docs/modules/_utilities_index_.html @@ -73,6 +73,39 @@

    External module "utilities/index"

  • Globals
  • +
  • + "index" +
  • +
  • + "utilities/dowhilst" +
  • +
  • + "utilities/index" +
  • +
  • + "utilities/iterator" +
  • +
  • + "utilities/map" +
  • +
  • + "utilities/parallel" +
  • +
  • + "utilities/queue" +
  • +
  • + "utilities/retry" +
  • +
  • + "utilities/safe-assign" +
  • +
  • + "utilities/series" +
  • +
  • + "utilities/settle" +