Skip to content

Clean up async timeout extension methods #16620

@JamesNK

Description

@JamesNK

There are async timeout extension methods available in Microsoft.AspNetCore.Testing, e.g. await task.TimeoutAfter().

Many ASP.NET Core projects have there own copies of these timeout methods, or wrap them in there own extension methods (probably done to remove a copy while minimizing changes), e.g. https://github.com/aspnet/AspNetCore/blob/master/src/Hosting/TestHost/test/Utilities.cs

We should go through aspnetcore/extensions and clean up the copies and wrappers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-fewThis issue impacts only small number of customersarea-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsclean-upThis issue is internal clean-up and has no effect on public APIs or expected behaviorsfeature-platformDeprecated: Cross-cutting issues related to ASP.NET Core as a platformhelp wantedUp for grabs. We would accept a PR to help resolve this issueseverity-nice-to-haveThis label is used by an internal tooltask

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions