This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Remove ready event from basic usage #1762
Closed
Description
Now that we've started going down the "promises everywhere" rabbit hole it should be possible to remove waiting for the ready event from the default usage.
There's a few different ways we could go about this. Off the top of my head I think it would be nice to have a property on the object that is a promise that is resolved when ready.
let ipfs = new IPFS()
await ipfs.ready
And we could create a convenience method called create()
that did this automatically.
let ipfs = await IPFS.create()
Thoughts?