Skip to content

feat: inherit signal on piping #968

@antongolub

Description

@antongolub

Imagine:

const ac = new AbortController()
const {signal} = ac

const p1 = $({signal})`cmd`
const p2 = p1.pipe`cmd`.pipe`cmd`

It's required to pass the signal to the entire piped process chain

setTimeout(() => signal.abort(), 500)

const o2 = await p2 // Aborted

Metadata

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