Miss any of our Open RFC calls?Watch the recordings here! »

th-sort

1.1.1 • Public • Published

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

Install

npm i th-sort

DownloadsWeekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

3.23 kB

Total Files

4

Last publish

Collaborators

  • avatar