Skip to content

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

Closed

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.

Activity

  1. added
    workflowsUsage: [Issues, PRs], Target: Workflows
    and removed
    triageUsage: [Issues], Target: All issues that still need to be triaged
    on Nov 10, 2025
  2. alliscode commented on Nov 10, 2025

    @alliscode
    Member

    Thank you for you feedback Miron (@MironAtHome), we'll take this into account as we continue to improve our samples and documentation.

  3. changed the title [-]Spurious and unjustified use of async makes for poor style[/-] [+].NET: Spurious and unjustified use of async makes for poor style[/+] on Dec 5, 2025
  4. lokitoth commented on Jan 26, 2026

    @lokitoth
    Contributor

    Two separate issues in this item, so splitting out second to ensure it gets routed to the right place.

  5. markwallace-microsoft commented on Mar 20, 2026

    @markwallace-microsoft
    Contributor

    Miron (@MironAtHome), friendly reminder — this issue is waiting on your response. Please share any updates when you get a chance. (This is an automated message.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions