Skip to content

Commit

Permalink
Add [MustDisposeResource] attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
skrysmanski committed May 18, 2024
1 parent 8126858 commit 0c87ce4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AppMotor.Core/Threading/TaskList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public Task<Task> WhenAny()
}

/// <inheritdoc />
[MustDisposeResource]
public IEnumerator<Task> GetEnumerator()
{
if (this._underlyingList != null)
Expand All @@ -100,6 +101,7 @@ public IEnumerator<Task> GetEnumerator()
}

/// <inheritdoc />
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
Expand Down Expand Up @@ -184,6 +186,7 @@ public Task<Task<T>> WhenAny()
}

/// <inheritdoc />
[MustDisposeResource]
public IEnumerator<Task<T>> GetEnumerator()
{
if (this._underlyingList != null)
Expand All @@ -197,6 +200,7 @@ public IEnumerator<Task<T>> GetEnumerator()
}

/// <inheritdoc />
[MustDisposeResource]
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
Expand Down

0 comments on commit 0c87ce4

Please sign in to comment.