Skip to content

yornaath/background-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

background-worker

Usage

var BackgroundWorker = require( 'background-worker' )

var worker = new BackgroundWorker()

worker.define( 'add', ( a, b ) =>  a + b )

worker.run( 'add', [1, 2] ).then((res) => {
  res === 3
})
.finally( () -> worker.terminate() )

Execute tasks on web Workers without seperate files.

Partially made, with <3 at:

Foo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published