Skip to content

built-in Governor compositions #8

Open
@michaelficarra

Description

@michaelficarra

Sometimes you have a process that depends on more than one limited resource. If you're invoking the Governor protocol yourself, you can just do this with Promise.all. But if you're passing it to an API that expects a Governor parameter, you'd have to re-wrap it up using the Governor interface. Similarly, if you want it to be usable with using, you'd have to implement the Explicit Resource Management protocol. We should provide a Governor composition function Governor.all.

What I've described is a product operation. Would a sum operation also be useful? I imagine so but probably not anywhere near as commonly.

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