asynkron / protoactor-dotnet

Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
http://proto.actor
Apache License 2.0
1.68k stars 284 forks source link

using await on types implementing IAsyncDisposable #2114

Closed AmirShitrit closed 1 month ago

AmirShitrit commented 1 month ago

Description

Using await using on types implementing IAsyncDisposable. Also, awaiting on ExecuteNonQueryAsync where it's used, in order to get a clearer callstack when exceptions are thrown. In addition, returning index + 1 in PersistEventAsync instead of index++ which also needlessly modifies index.

Purpose

This pull request is a:

Checklist