dotnet / dotnet/dotnet-api-docs

ThreadInterruptedException not documented in Thread.Join(TimeSpan)

Open
#10,621 0 comments 0 reactions 0 assignees View on GitHub
area-System.Threading Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Missing information

### Description

According to typical implementations (cf. [dotnet/runtime](https://github.com/dotnet/runtime/blob/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs#L541C47-L541C94) and [microsoft/referencesource](https://github.com/microsoft/referencesource/blob/51cf7850defa8a17d815b4700b67116e3fa283c2/mscorlib/system/threading/thread.cs#L698)), _Thread.Join(TimeSpan)_ uses the same underlying implementation as _Thread.Join()_ and _Thread.Join(Int32)_. However, the [documentation of _Thread.Join(TimeSpan)_](https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread.join?view=net-8.0#system-threading-thread-join(system-timespan)) does not mention that it can throw _ThreadInterruptedException_.

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread.join?view=net-8.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/Thread.xml

### Document Version Independent Id

a436bcdf-2ca1-535f-a9ef-82f7a6df28eb

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.