Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Modify MatcherContext so that it returns an IEnumerable #143

@reliak

Description

@reliak

In https://github.com/aspnet/FileSystem/blob/dev/src/Microsoft.Extensions.FileSystemGlobbing/Internal/MatcherContext.cs#L44 the Execute method returns a PatternMatchingResult object.

To better support parallel operations, it would be great to return an IEnumerable<FilePatternMatch> with an yield inside the Execute method. This way I can start working when the first file was found and I do not need to wait till the end of the Execute method.

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