Skip to content

Infinite loop if action passed to every returns false #5

@NeoPhi

Description

@NeoPhi

The following line will cause an infinite loop if the action passed to every returns false.

return !result || list.length > 0;

As !result will be true even when the list is exhausted true will be passed to the pool indicating that is should keep looping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions