Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise for cell operator (promiseof) #188

Open
mbostock opened this issue Jun 15, 2021 · 1 comment
Open

Promise for cell operator (promiseof) #188

mbostock opened this issue Jun 15, 2021 · 1 comment

Comments

@mbostock
Copy link
Member

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.

@enjalot
Copy link

enjalot commented May 20, 2022

this would be really powerful for sql cells where its going to be expected that queries may run for a while but still want to indicate to consumer of notebook that the results of the query are being waited on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants