Skip to content
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

Image for: 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

Image for: Metadata

Metadata

Image for: Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Image for: Issue actions