mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
### Motivation:
In some (probably niche) scenarios, especially in pre-Concurrency UI
applications on Darwin, it can be useful to wait for an a value whilst
still running the current `RunLoop`. That allows the UI and other things
to work whilst we're waiting for a future to complete.
### Modifications:
- Add `NIOFoundationCompat.EventLoopFuture.waitSpinningRunLoop()`.
### Result:
Better compatibility with Cocoa.
(cherry picked from commit 2a8811acd6)