Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

feat/start and stop #15

Merged
merged 3 commits into from
Jan 9, 2017
Merged

feat/start and stop #15

merged 3 commits into from
Jan 9, 2017

Conversation

daviddias
Copy link
Member

Needed to finish ipfs/js-ipfs#644

@daviddias
Copy link
Member Author

@gavinmcdermott could you accept the invitation for the libp2p org?
image

* @returns {undefined}
*
*/
start (callback) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remembering the discussions for the better js-ipfs start and stop interface, could we make this callback just bind to a start event and similarly for stop?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the improving init -- ipfs/js-ipfs#556 -- discussion comes from the annoyance of having 3 steps to start js-ipfs (init, load, goOnline), while in bitswap, floodsub, libp2p it is really just one


setImmediate(() => {
this.started = true
callback()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why a callback at all if this is actually snyc?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly future proofing, but I was also asking myself if we should wait for the dials to happen.

@gavinmcdermott
Copy link
Contributor

gavinmcdermott commented Dec 31, 2016

@diasdavid - thanks for the ping—just accepted. Even though I've been a bit IDEO-work-focused this week, I've been tracking your guys' progress via the latest PRs—beautiful! I'm almost wrapped up getting the latest version of Nomad ready for a 2 week intensive build/exploration. In a nutshell, by this weekend:

  • ported fully over to JS-land (off of the go daemon)
  • using this initial version of pubsub
  • lots of tests!

We'll get a bunch of mileage out of the latest updates next week (meaning pubsub should be getting hammered on)...so I'm sure useful new questions will begin to surface. Look forward to being back in the loop; talk soon!

@daviddias daviddias merged commit 65801dc into master Jan 9, 2017
@daviddias daviddias deleted the feat/start-and-stop branch January 9, 2017 13:03
@daviddias daviddias removed the status/in-progress In progress label Jan 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants