Skip to content

[ipfs/go-bitswap] Use contexts for sessions #94

@Stebalien

Description

@Stebalien

Instead of creating special sessions, it would be awesome if we could just call:

ctx := WithSession(ctx)

And get a session that closes when the context is canceled. Then, when making requests, we'd pick the session out of the context. This would make it much easier to thread sessions through ipfs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions