Kros-sk / Kros.KORM

Simple and fast micro-ORM framework for .NET.
MIT License
9 stars 16 forks source link

Cancellation token for commit #102

Closed bakosk closed 2 years ago

bakosk commented 2 years ago

it would be nice if ITransaction.Commit() method could accept cancelation token and rollback transaction if provided. If it is feasible() :)

It could be something like this https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbtransaction.commitasync?view=net-6.0&viewFallbackFrom=dotnet-plat-ext-6.0#system-data-common-dbtransaction-commitasync(system-threading-cancellationtoken)

Burgyn commented 2 years ago

I'll look into it