Comments (3)
Cool :). That's a good start!
I still think that the button
event handling is still quite visible in the code.
What do you think about:
ASQ
.reactTo('.button')
.clicks()
.then(...)
You'd have the reactTo
wrapper for the element searching and then that can get clicks()
or any other event that is out there and then transform it. Clicks
can optionally receive the button and send something from it if you need it.
I think DSL looks clearer that way!
from asynquence.
It looks cleaner, but significantly expands the scope of what asynquence does, and I think unacceptably so. I do not want to replicate any sort of event handling/binding/management in asynquence, there are already plenty of them out there, plenty of frameworks, etc.
The narrow goal of asynquence is to be able express async flow-control in a friendly way, without the overhead of promises. The expanded vision this includes is easy integration with any other auxiliary patterns that people are using to create or initiate asynchronicity.
So, providing an easy way for an event handler to fire off multiple sequence chains is within scope, but providing a way to do the event handling itself is outside of the scope.
Hope that makes sense. Thanks for the feedback! :)
from asynquence.
That makes sense!
from asynquence.
Related Issues (20)
- Sequence's order of execution may be wrong in some cases HOT 10
- `runner(..)` plugin bug w/ multiple generators
- ARRAY_SLICE is not defined. HOT 4
- Combining Generators with Promises Using Asynquence HOT 2
- pass all message in map()
- improve `wrap(..)`
- Thanks for asynquence HOT 1
- async map HOT 4
- JSBin examples not working HOT 3
- How to extend an ASQ iterable sequence while it's running? HOT 4
- Babel 6: missing ) after argument list (asq.src.js line 66) HOT 6
- loop over an array in series? HOT 6
- Continue onerror fail HOT 2
- [question] why do u use setImmediate not process.nextTick ? HOT 4
- contrib: fix wrapped generators and arguments
- test-extensions are in contrib for some reason HOT 3
- [README]: Enlarge build section to be about contrib (Maybe), add 'Contributing' section HOT 4
- autod error
- ASQ.iterable() is not a function... HOT 5
- ES6 asynquence-contrib importing issue HOT 9
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 asynquence.