Skip to content

Replace usages of TPL DataFlow BufferBlock with Threading.Channels #4482

@eerhardt

Description

@eerhardt

There are 2 places we are using BufferBlock<T> today:

private readonly BufferBlock<int> _toProduce;
private readonly BufferBlock<int> _toConsume;

private readonly BufferBlock<ParameterSetWithId> _paramQueue;

We should consider replacing this dependency with https://www.nuget.org/packages/System.Threading.Channels/ instead. Channels are a bit simpler, and more performant than BufferBlock.

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority of the issue for triage purpose: Needs to be fixed at some point.good first issueGood for newcomersup-for-grabsA good issue to fix if you are trying to contribute to the project

    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