Skip to content

Add Parallel method #24

Description

@WhiteBlackGoose

Prototype

public static TOut[] Parallel<T, TOut>(this T @this, params Func<T, TOut> toRun)
    => Task.WaitAll(toRun.Select(Task.Run));

Comments

There also should be an Action-based overload.

Also, a method which would run async lambdas and async actions.

Unresolved questions

What's the name for the method?

How do we not confuse async lambdas with lambdas returning a task?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions