Skip to content

Modify MatcherContext so that it returns an IEnumerable #828

@aspnet-hello

Description

@aspnet-hello

From @reliak on Monday, November 23, 2015 6:18:25 AM

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.

Copied from original issue: aspnet/FileSystem#143

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions