Skip to content

Tasks: single-consumer not-quite-promises #13

@domenic

Description

@domenic

@kriskowal makes the case here: https://github.com/kriskowal/gtor/blob/master/cancelation.md

After thinking on this for a while, it's pretty elegant. By re-using the .then interface, they can be converted to promises easily (via Promise.resolve(theTask)), which makes them multicast.

@nathan7 and I were talking about this at NodeConf EU; tagging him in.

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