Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.NET: Spurious and unjustified use of async makes for poor style #2062

Description

@MironAtHome

Two code issues
--- #1
https://github.com/microsoft/agent-framework/blob/7a45929807daf6c3af16ec624bd0d937ce825357/workflow-samples/setup/CreateAgents/Program.cs

Please consider choice of

a using async loop
foreach (string file in files)
or
b removing async methods and using synchronous methods.
At the moment async methods in the code noted increase machine resource usage for no gain.

Metadata

Metadata

Assignees

Labels

.NETUsage: [Issues, PRs], Target: .NetworkflowsUsage: [Issues, PRs], Target: Workflows

Type

Fields

No fields configured for Task.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions