Files
swift-nio/Sources/NIOFoundationCompat
Johannes Weiss c7c830a419 EventLoopFuture.waitSpinningRunLoop() (#2985)
### 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)
2024-11-22 09:53:54 +00:00
..