Skip to content

Make to text stream ListStreams - #7577

Merged
rgwood merged 2 commits into
nushell:mainfrom
rgwood:to-text-stream
Dec 23, 2022
Merged

rgwood merged 2 commits into
nushell:mainfrom
rgwood:to-text-stream

Conversation

@rgwood

@rgwood rgwood commented Dec 22, 2022 •

Copy link
Copy Markdown
Contributor

This PR changes to text so that when given a ListStream, it streams the incoming values instead of collecting them all first.

The easiest way to observe/verify this PR is to convert a list to a very slow ListStream with each:

ls | get name | each {|n| sleep 1sec; $n} | to text

The to text output will appear 1 item at a time.

@rgwood rgwood added the A:streaming Issues related to streaming data (or collecting data when it should be streamed) label Dec 23, 2022
@rgwood
rgwood merged commit 9364bad into nushell:main Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:streaming Issues related to streaming data (or collecting data when it should be streamed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant