Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CSP as FRP foundation

Sketches.

Content

01. consume / broadcast

Consume values from input channel. Broadcast values from input channel.

02. tap

Produce side effects from input channel without values being consumed.

03. sleep

Pause task for defined time.

04. drawEvery / callEvery / repeatEvery

Generate sequential values over time.

05. merge

Merge values from input channels into output channel.

06. delay

Delay every value from input channel for defined time.

07. lift

Apply function over input streams. First call will be delayed until all input channels yield.

08. map / filter / scan

Classic functional triad.

Notes

Every time your project is promise-based (async-await is) – don't forget to add something like

// backend only: need condition for isomorphic app
process.on("unhandledRejection", function (reason, p) {
  throw reason;
});

into app root file. Blame NodeJS devs for that.

About

CSP as FRP foundation. Sketches

Resources

Releases

No releases published

Packages

No packages published