All Projects â†’ blahah â†’ choo-asyncify

blahah / choo-asyncify

Licence: MIT license
make choo's events non-blocking ... 🚋 ...

Programming Languages

javascript
184084 projects - #8 most used programming language

choo-asyncify

make choo events asychronous

🚂🚋🚋🚋🚋🚋 (choo) + 🚋 (choo-asyncify)

choo is a super lightweight, well engineered frontend framework.

choo v5 is event-based. Where previous versions would asynchronously send messages from views to effects, v5 uses nanobus to send synchronous events. Depending on how you structure your app, this might cause blocking of UI updates.

choo-asyncify monkey-patches the nanobus instance passed around by choo so that every event is non-blocking. Specifically, each emit call is wrapped in a setImmediate, or if setImmediate isn't available, in a setTimeout(fn, 0).

install

npm install --save choo-asyncify

usage

Just pass choo-asyncify to choo().use():

var app = require('choo')()

app.use(require('choo-asyncify'))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].