.NET event stream projection and scheduling platform with CosmosDB, DynamoDB, EventStoreDB, MemoryStore, message-db, Equinox and Kafka integrations
177
stars
24
forks
source link
fix: Add a 'use' around linked cancellation tokens #221
Closed
nordfjord closed 1 year ago
I noticed that a lot of the objects that were surviving in my memory leak repro were CancellationTokenSources
Adding a use seems to solve for our memory leak
Before
After
See this related stack overflow https://stackoverflow.com/questions/6960520/when-to-dispose-cancellationtokensource