Skip to content

do release/asyncRelease pay for themselves? #17

@michaelficarra

Description

@michaelficarra

On one hand, it's nicer to write token.release() or token.asyncRelease() than token[Symbol.dispose]() or token[Symbol.asyncDispose](). On the other hand, it makes it more annoying to produce a GovernorToken. You either have to install each method under two different names or you have to inherit from some GovernToken.prototype which would have helpers that call the other one. This just doesn't seem worth it for the slight convenience, especially when much of the usage of governors will be through the using syntax or through other helpers like those on AsyncIterator.prototype or Governor.prototype, which means most people will never even hold a token, let alone manually release it. I think we should remove them.

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