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

Readme

Keywords

Package Sidebar

Install

npm i th-sort

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

3.23 kB

Total Files

4

Last publish

Collaborators

  • kshshe