Skip to content
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
@mikeal

Description

@mikeal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowexp/noviceSomeone with a little familiarity can pick uphelp wantedSeeking public contribution on this issuestatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions