-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
Labels
No labels