Comments (16)
Awesome, I'll check it out. Have you done any profiling comparisons?
from js-csp.
from js-csp.
Hey @darrenhaken - I'm using and following this project, if that counts!
from js-csp.
@donato That's really useful. Would you be able to show me any examples of using CSP's to chain multiple AJAX requests together? I'd love to see an example of how a chain of AJAX Promises could be converted to using CSP
from js-csp.
+1 Love this project!
from js-csp.
I'm using it in a fairly large codebase.
I know that some people prefer the async version : https://github.com/dvlsg/async-csp
from js-csp.
@zeroware can you offer any gists showing multiple AJAX requests together with CSP?
I'm curious to see a working example.
from js-csp.
@darrenhaken check this out if you haven't
http://jlongster.com/Taming-the-Asynchronous-Beast-with-CSP-in-JavaScript
It does contain an AJAX example among other things. You can just add as many calls as you want inside the go block. Read the whole thing and try out some examples, you'll get to understand the logic eventually.
@ubolonton doesn't seem to be too active. I am using this library and love it, but would like to see more activity going on.
from js-csp.
Hey folks I'm making a lightweight "CSP in javascript" library, if you want to take a look at this or any suggestion, here the repo https://github.com/yosbelms/getjs
@darrenhaken the documentation of the library I'm working on has an example using AJAX, may be you want to try it.
from js-csp.
@donato, no yet, I'm right now focused in the docs. I'll test channels performance soon. I opened a new thread here to suggest metrics comparison.
from js-csp.
@yosbelms Great job ! Do you plan on adding transducers support like js-csp ?
from js-csp.
@zeroware, Actually you can use a transformer
function, for example:
var ch = chan(null, x => x*2) // unbuffered channel with a `transformer`
Both, channels and streams supports tranformers
, that is just a function to transform arriving values. It is an open door to link with tranducers, underscore, lodash or any related lib.
from js-csp.
It seems like @hung-phan is actively working on it again! Could you confirm?
from js-csp.
Uhm, @XVincentX.
from js-csp.
Should I take that as a yes?
from js-csp.
Yup. π
from js-csp.
Related Issues (20)
- getting started - how to run examples? HOT 8
- [question] take/put vs JS event loop HOT 2
- cannot 'npm run build' on linux or mac HOT 5
- Determine whether an object is a Channel
- External termination of goroutines HOT 2
- Exception unhandling
- react create app uglify errror HOT 4
- Major bug: proc is yielding first pending value when channel is closed but skipping the rest HOT 36
- High level explanation HOT 2
- Destructuring missing in transpilation? HOT 2
- BaconJS examples? HOT 8
- bug related to close in v1 HOT 19
- throttle and debounce HOT 2
- Golang like Context HOT 4
- Bubble Burster Game example
- Failed to minify code : Create React App Build Error HOT 2
- Question: similarities to parallelLimit() HOT 2
- interest in maintaining HOT 2
- Happy to be a maintainer HOT 8
- Maintainers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-csp.