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

introduce Custodians, refactor (read), add (assert) #261

Merged
merged 3 commits into from
Nov 27, 2022
Merged

Conversation

vito
Copy link
Owner

@vito vito commented Nov 27, 2022

(read) no longer buffers the entire stream. instead, PipeSource is now Close()able and any opened source is registered with a Custodian for cleaning up.

Note that there isn't actually a (close) at this point since I'm not sure if people will even need to care about that level of detail. Would rather not have people feel the need to resource manage so carefully. Right now everything is closed automatically when a script runs or is loaded. We'll see if we need anything more than that.

this makes it easier to just move test assertions into test scripts
instead of having them "return" something, which isn't always possible
(e.g. when testing Sessions)
(read) no longer buffers the entire stream. instead, PipeSource is now
Close()able and any opened source is registered with a Custodian for
cleaning up.
@vito vito added the enhancement New feature or request label Nov 27, 2022
@vito vito merged commit f3809e8 into main Nov 27, 2022
@vito vito deleted the read-refactor branch November 27, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant