[filesystem-api] Observable is not appropriate for directory listing; async iterable would be better (#4)

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

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/filesystem-api/issues/4

Received on Friday, 29 May 2015 03:27:20 UTC