Skip to content

variable.dispose#379

Open
mbostock wants to merge 1 commit into
mainfrom
mbostock/variable-dispose
Open

variable.dispose#379
mbostock wants to merge 1 commit into
mainfrom
mbostock/variable-dispose

Conversation

@mbostock

@mbostock mbostock commented Jul 4, 2026

Copy link
Copy Markdown
Member

Ref. observablehq/notebook-kit#174. I chose to keep variable.delete and variable.dispose as distinct, but maybe variable.dispose should call variable.delete internally? Dunno.

@mbostock mbostock requested a review from Fil July 4, 2026 13:22
@mbostock mbostock unassigned Fil Jul 4, 2026
@Fil Fil mentioned this pull request Jul 4, 2026

@Fil Fil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat. Agree it's probably better not to mix dispose (lifecycle) and delete (topology).
I'm suggesting tests in #380 (including the bug report and a test that helped me understand how variable.dispose terminates an async generator).

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

Successfully merging this pull request may close these issues.

2 participants