mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
update documentation that EventLoopIterator is no longer optional (#888)
Motivation: docs were old Modifications: update the EventLoopIterator examples Result: better docs
This commit is contained in:
1 parent
3fcc5f9f08
commit
e4774cc6e3
1 file changed
+1
-1
@@ -173,7 +173,7 @@ public final class RepeatedTask {
|
||||
/// Usually returned by an `EventLoopGroup`'s `makeIterator()` method.
|
||||
///
|
||||
/// let group = MultiThreadedEventLoopGroup(numberOfThreads: 1)
|
||||
/// group.makeIterator()?.forEach { loop in
|
||||
/// group.makeIterator().forEach { loop in
|
||||
/// // Do something with each loop
|
||||
/// }
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user