Skip to content

should we have a Symbol-based acquisition protocol #18

@michaelficarra

Description

@michaelficarra

I don't really like establishing new String-based protocols. Right now, the governor protocol is a pair of string-named methods ("acquire"/"asyncAcquire") which would most often be called internally within AsyncIterator.prototype and Governor.prototype methods. This really makes me think it's better to use symbols for this protocol. If we do use symbols, where should they live? And should we have a Governor.prototype.acquire that just defers to the symbol?

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