Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AsyncLocal<T> Class Article

Open Beginner friendly
#13,091 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
documentation

Research direction

Open the content source XML at System.Threading/AsyncLocal`1.xml and locate the AsyncLocal example output. Compare it with the issue's corrected ordering, then verify the rendered API article at the provided page URL shows the expected output sequence.

Written by the indexing model from the issue text.

Description

area-System.Threading untriaged
Type of issue

Other (describe below)

Description

The example output provided in this specific article is incorrect. Rather than
// The example displays the following output:
// Entering AsyncMethodB.
// Expected 'Value 1', AsyncLocal value is 'Value 1', ThreadLocal value is 'Value 1'
// Entering AsyncMethodB.
// Expected 'Value 2', AsyncLocal value is 'Value 2', ThreadLocal value is 'Value 2'
// Exiting AsyncMethodB.
// Expected 'Value 2', got 'Value 2', ThreadLocal value is ''
// Exiting AsyncMethodB.
// Expected 'Value 1', got 'Value 1', ThreadLocal value is ''

It should have been
Entering AsyncMethodB.
Expected 'Value 1', AsyncLocal value is 'Value 1', ThreadLocal value is 'Value 1'
Entering AsyncMethodB.
Expected 'Value 2', AsyncLocal value is 'Value 2', ThreadLocal value is 'Value 2'
Exiting AsyncMethodB.
Expected 'Value 1', got 'Value 1', ThreadLocal value is ''
Exiting AsyncMethodB.
Expected 'Value 2', got 'Value 2', ThreadLocal value is ''

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.threading.asynclocal-1?view=net-10.0

Content source URL

https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.Threading/AsyncLocal`1.xml

Document Version Independent Id

05321180-eca9-f7dd-9abc-2111f2d0dc19

Platform Id

39033060-77e9-4a7f-b5e4-5a827208dab7

Article author

@dotnet-bot

Dominant language
C#
Stars
950
Forks
1.7k
Avg merge
1d 22h
Merged PRs (30d)
34

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/dotnet-api-docs

All issues in dotnet/dotnet-api-docs

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.