asynkron / protoactor-dotnet

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

using await on types implementing IAsyncDisposable #2114

Closed AmirShitrit closed 7 months ago

AmirShitrit commented 7 months 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