Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Aug 26, 2024
1 parent bac66bd commit 429b099
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/Naninovel.Common/ObjectPool/PooledObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ namespace Naninovel;
/// <summary>
/// A disposable wrapper over a pooled object.
/// </summary>
/// <remarks>
/// .NET has optimization that prevents boxing disposable structs:
/// https://github.com/dotnet/csharplang/discussions/8337.
/// </remarks>
public readonly struct PooledObject<T> (T obj, ObjectPool<T> pool)
: IDisposable where T : class
{
Expand Down

0 comments on commit 429b099

Please sign in to comment.