th-sort
v1.1.1
Published
Multithread Quicksort
Downloads
11
Readme
th-sort
Multithread Quicksort
Simple non-blocking quicksort algorythm in other thread.
Example
sandbox where you can sort one array in main thread and in separated thread.
Usage
import thsort from 'th-sort';
(async () => {
// array is defined somewhere earlier
const sorted = await tsort(array);
})()
// Or
tsort(array)
.then((sorted) => {
})
Installing
npm i --save th-sort