Skip to content

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.

vito added 3 commits November 26, 2022 21:30
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.

2 participants