Skip to content

feat: make ProcessPromise iterable via async for #965

Closed
@antongolub

Description

@antongolub

Imagine:

const p = $`cmd`
for await (const chunk of p) {
  // ...
}

const o = await $`cmd`
for (const chunk of o) {
  // ...
}

Keep in mind, It is important to make iterator available at any stage of the process. See how the pipe() API handles this requirement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ossln24OSS Library Night 2024

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions