Open lhoward opened 2 days ago
Original source for AsyncBufferedChannel.
My branch which uses swift-atomics, new withTaskCancellationHandler()
method signature, consolidates some locking and also fixes bug (note the leak occurred before making any of the first three fixes).
Ref sideeffect-io/AsyncExtensions#43
I spent a bit of time trying to find a memory leak in AsyncExtension's AsyncBufferedChannel, and in the end it turned out to be fixed by replacing its use of OrderedSet with Array. Why this fixes the leak I am still investigating.
Information
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
I haven't tried with main, but there are no differences in
Sources/OrderedCollections/OrderedSet
between 1.1.4 and main.