Skip to content

Commit

Permalink
Generate async files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 7, 2024
1 parent a7a2f05 commit b31e39d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ public override Task PutAsync(object key, object value, CancellationToken cancel
}
}

public override Task RemoveAsync(object key, CancellationToken cancellationToken)
{
try
{
_hashtable.Remove(key);
return Task.CompletedTask;
}
catch (System.Exception ex)
{
return Task.FromException<object>(ex);
}
}

public override Task ClearAsync(CancellationToken cancellationToken)
{
try
Expand Down

0 comments on commit b31e39d

Please sign in to comment.