apple / swift-nio-ssh

SwiftNIO SSH is a programmatic implementation of SSH using SwiftNIO
Apache License 2.0
406 stars 50 forks source link

Fix some sendability warnings in tests #155

Closed PeterAdams-A closed 1 year ago

PeterAdams-A commented 1 year ago

Motivation:

Swift concurrency warnings are here to help. We can encode some of our assumptions to the type system.

Modifications:

Replace a number of captured variables with LoopBound instances.

Result:

Fewer sendability warnings