This module provides a class to organize a [[WorkerQueue]] data structure with support of task merging by a specified hash function.
It means that the same tasks aren't duplicated. See core/queue/worker and
core/queue for more information.
To provide a function to calculate task hashes, use the structure constructor hashFn option.
By default, all hashes are calculated via Object.fastHash.
core/queue/worker/merge
This module provides a class to organize a [[WorkerQueue]] data structure with support of task merging by a specified hash function. It means that the same tasks aren't duplicated. See
core/queue/worker
andcore/queue
for more information.Usage
Providing a hash function
To provide a function to calculate task hashes, use the structure constructor
hashFn
option. By default, all hashes are calculated viaObject.fastHash
.