Comments (6)
Heh, sorry, wasn't being clear. In the uses I have in mind, the sink would call start but it wouldn't start automatically after bind. We're saying the same things but with different code calling start sometime after the bind has been performed.
from bob.
Definitely agree with this. The Sink should be in complete control over when to start data flow.
from bob.
To be clear - it already is, this is discussing making it less actually. I.e. making the outside code have to tell the sink to start explicitly.
from bob.
Something like
Stream(source, transform, sink).start()
could then invoke sink.start()
, or, more verbosely:
sink.bindSource(source, err => {}).start()
from bob.
Current extension reference: https://github.com/Fishrock123/bob/blob/master/reference-extension-start.js
from bob.
If we make start()
standard we can move the "bindCb" (the exit/error callback) to start()
instead which would make bindSource()
not have developer polymorphism. I think that would probably be a good idea. (or, have start return a promise) (or conditionally) (one or the other)
from bob.
Related Issues (20)
- Official way of doing C++ binding detection
- Non-single-logical-flow (multiple pulls) HOT 9
- convert to npm module with 'top-level' require-able helpers HOT 3
- Make Stream() an async iterator HOT 1
- automated tests
- Progress 23/07/2019 - July
- Blog about this? HOT 2
- Stream livecoding for this?
- Organize a meeting HOT 1
- move StdoutSink into a `stdio-sink` module?
- Buffer allocation hints
- Construct flow HOT 1
- Managed state
- Where do object streams fit in? HOT 8
- potential stack overflows HOT 11
- clean up the source after stopping HOT 1
- Potential streams3 adaptor bugs
- Compare more to alternate ideas, such as push-stream.
- Progress 11/12/2019 - December
- Slides from Montréal collab summit 2019
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 bob.