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

(Async)Iterator support #155

Open
jimmed opened this issue Jul 4, 2021 · 0 comments
Open

(Async)Iterator support #155

jimmed opened this issue Jul 4, 2021 · 0 comments

Comments

@jimmed
Copy link

jimmed commented Jul 4, 2021

I love using listr for handling complex trees of async tasks, and I especially love the way it handles Observables/ReadableStreams by rendering the last emitted value below the task title.

Recently, I've been learning about (and experimenting with) the AsyncIteratable pattern which has been supported in node.js since v10.

While AsyncIterables behave subtly differently to Observables and ReadableStreams, they at least have in common that they asynchronously yield zero or more values before completing.

Accordingly, it would be amazing for listr to accept AsyncIterables as a task callback's return value, much as it already supports Observables and ReadableStreams.

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

1 participant