PluralKit/PluralKit.Core/Database/Wrappers/IPKTransaction.cs

13 lines
330 B
C#
Raw Normal View History

2021-08-27 15:03:47 +00:00
using System;
2020-06-13 16:49:05 +00:00
using System.Data;
using System.Threading;
using System.Threading.Tasks;
namespace PluralKit.Core
{
public interface IPKTransaction: IDbTransaction, IAsyncDisposable
{
public Task CommitAsync(CancellationToken ct = default);
public Task RollbackAsync(CancellationToken ct = default);
}
}