Thanks to visit codestin.com
Credit goes to github.com

Skip to content

async timeout operator does not pass through its input #325

@andreasdamm

Description

@andreasdamm

IxJS version:
4.3.1

Code to reproduce:
`const {of, first} = require('ix/asynciterable')
const {timeout} = require('ix/asynciterable/operators')

async function main()
{
const value = await first(of(42).pipe(timeout(100)))
console.log(value)
}

main()`

Expected behavior:
output '42' to the console

Actual behavior:
outputs 'undefined' to the console

Additional information:
commit b0c90cb introduced this bug by renaming 'value' to 'val' in src/asynciterable/operators/timeout.ts at line 57

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