Skip to content

jacobangel/flux-capacitors-from-bttf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flux Workers

Using Flux to communicate with Web Workers, so as to perform all non-ui interaction using non-blocking threads.

Action Dispatch Between Workers

Distribute the work automatically by passing the action through a worker. It's extremely similiar to a techniqued used in flux-mirror.

build

Build is done using webpack.

npm install && npm run build

testing

This run on webpack-dev-server. Start it as so:

npm run serve

Open up browser at http://localhost:8080

Alternatives

Promise Based solution for web-workers is probably a smarter approach?

// utils/ActionWorker.js
const worker = require('worker!./Api')
// wrap worker into promis
// use like an axios style or fetch.

const workios = promisifiedWorker(worker).doAction()...

LaggyThing.getPrime().then(this.dispatch());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published