Skip to content

Allow configuring number of attempts to produce a value with Filter() #85

@swist

Description

@swist

I understand this is a pretty rare use-case, but it would be great to dial the tradeoff between taking a long time to Filter() a valid value and number of values we get. At the moment if we don't produce a value that passes Filter() within small attempts (currently set to 5), the generator fails. Would it make sense to make it an optional argument to Filter()?

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