docs.unity3d.com
    Show / Hide Table of Contents

    Class TaskLinq

    Inheritance
    Object
    TaskLinq
    Namespace: Ludiq
    Syntax
    public static class TaskLinq

    Fields

    parallelizeByDefault

    Declaration
    public static bool parallelizeByDefault
    Field Value
    Type Description
    Boolean

    Methods

    ForEachTask<T>(IEnumerable<T>, String, Action<T>)

    Declaration
    public static void ForEachTask<T>(this IEnumerable<T> items, string title, Action<T> action)
    Parameters
    Type Name Description
    IEnumerable<T> items
    String title
    Action<T> action
    Type Parameters
    Name Description
    T

    ForEachTask<T>(IEnumerable<T>, String, Boolean, Func<T, String>, Action<T>)

    Declaration
    public static void ForEachTask<T>(this IEnumerable<T> items, string title, bool parallelize, Func<T, string> getLabel, Action<T> action)
    Parameters
    Type Name Description
    IEnumerable<T> items
    String title
    Boolean parallelize
    Func<T, String> getLabel
    Action<T> action
    Type Parameters
    Name Description
    T

    SelectManyTask<TSource, TResult>(IEnumerable<TSource>, String, Boolean, Func<TSource, String>, Func<TSource, IEnumerable<TResult>>)

    Declaration
    public static HashSet<TResult> SelectManyTask<TSource, TResult>(this IEnumerable<TSource> items, string title, bool parallelize, Func<TSource, string> getLabel, Func<TSource, IEnumerable<TResult>> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Boolean parallelize
    Func<TSource, String> getLabel
    Func<TSource, IEnumerable<TResult>> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    SelectManyTask<TSource, TResult>(IEnumerable<TSource>, String, Func<TSource, IEnumerable<TResult>>)

    Declaration
    public static HashSet<TResult> SelectManyTask<TSource, TResult>(this IEnumerable<TSource> items, string title, Func<TSource, IEnumerable<TResult>> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Func<TSource, IEnumerable<TResult>> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    SelectTask<TSource, TResult>(IEnumerable<TSource>, String, Boolean, Func<TSource, String>, Func<TSource, TResult>)

    Declaration
    public static HashSet<TResult> SelectTask<TSource, TResult>(this IEnumerable<TSource> items, string title, bool parallelize, Func<TSource, string> getLabel, Func<TSource, TResult> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Boolean parallelize
    Func<TSource, String> getLabel
    Func<TSource, TResult> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    SelectTask<TSource, TResult>(IEnumerable<TSource>, String, Func<TSource, TResult>)

    Declaration
    public static HashSet<TResult> SelectTask<TSource, TResult>(this IEnumerable<TSource> items, string title, Func<TSource, TResult> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Func<TSource, TResult> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    SelectWhereTask<TSource, TResult>(IEnumerable<TSource>, String, Boolean, Func<TSource, String>, Func<TSource, Boolean>, Func<TSource, TResult>)

    Declaration
    public static HashSet<TResult> SelectWhereTask<TSource, TResult>(this IEnumerable<TSource> items, string title, bool parallelize, Func<TSource, string> getLabel, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Boolean parallelize
    Func<TSource, String> getLabel
    Func<TSource, Boolean> predicate
    Func<TSource, TResult> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    SelectWhereTask<TSource, TResult>(IEnumerable<TSource>, String, Func<TSource, Boolean>, Func<TSource, TResult>)

    Declaration
    public static HashSet<TResult> SelectWhereTask<TSource, TResult>(this IEnumerable<TSource> items, string title, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
    Parameters
    Type Name Description
    IEnumerable<TSource> items
    String title
    Func<TSource, Boolean> predicate
    Func<TSource, TResult> selector
    Returns
    Type Description
    HashSet<TResult>
    Type Parameters
    Name Description
    TSource
    TResult

    WhereTask<T>(IEnumerable<T>, String, Boolean, Func<T, String>, Func<T, Boolean>)

    Declaration
    public static HashSet<T> WhereTask<T>(this IEnumerable<T> items, string title, bool parallelize, Func<T, string> getLabel, Func<T, bool> predicate)
    Parameters
    Type Name Description
    IEnumerable<T> items
    String title
    Boolean parallelize
    Func<T, String> getLabel
    Func<T, Boolean> predicate
    Returns
    Type Description
    HashSet<T>
    Type Parameters
    Name Description
    T

    WhereTask<T>(IEnumerable<T>, String, Func<T, Boolean>)

    Declaration
    public static HashSet<T> WhereTask<T>(this IEnumerable<T> items, string title, Func<T, bool> predicate)
    Parameters
    Type Name Description
    IEnumerable<T> items
    String title
    Func<T, Boolean> predicate
    Returns
    Type Description
    HashSet<T>
    Type Parameters
    Name Description
    T
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023