Skip to content

Promise for cell operator (promiseof) #188

@mbostock

Description

@mbostock

It’d be nice if there were a way to opt-in to getting a promise of a cell’s next value. This would allow two things:

  1. A cell could start running before a cell it references has fulfilled. This would allow some operations to proceed in parallel, without needing to break these operations out into another cell.

  2. A cell could handle an error if a cell it references errors. For example, promiseof foo.catch(() => "default") or try { return await promiseof foo; } catch { return "default"; }. Related Cell level error handling runtime#286.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions