PluralKit/PluralKit.Core/Database/Wrappers/IPKTransaction.cs
2020-06-13 18:49:05 +02:00

13 lines
333 B
C#

using System;
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);
}
}