This repository was archived by the owner on Aug 28, 2019. It is now read-only.
This repository was archived by the owner on Aug 28, 2019. It is now read-only.
Observable is not appropriate for directory listing; async iterable would be better #4
Open
Description
https://github.com/zenparsing/async-iteration/ is where async iterable is proposed.
The difference is that with an observable the creator of the observable defines the pace at which "events" are produced (push), whereas with an async iterable, the consumer defines the pace at which work is performed. The latter is a much better match for filesystem APIs, e.g. Windows's FindFirstFileEx/FindNextFile/CloseFind, or POSIX opendir/readdir. In these cases the async iterable's .next()
would map pretty directly to FindFirstFileEx/FindNextFile and readdir.
/cc @zenparsing
Metadata
Metadata
Assignees
Labels
No labels