You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This product contains "ifaddrs-android.c" and "ifaddrs-android.h" from dxr.mozilla.org. Webrtc is the owner, but we use edited version from mozilla repo (Copyright (c) 2011, The WebRTC project authors. All rights reserved)
Copy file name to clipboardExpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,14 @@ dependencies: [
29
29
30
30
## Getting Started
31
31
32
-
**RediStack** is quick to use - all you need is an [`EventLoop`](https://apple.github.io/swift-nio/docs/current/NIO/Protocols/EventLoop.html) from **SwiftNIO**.
32
+
**RediStack** is quick to use - all you need is an [`EventLoop`](https://swiftpackageindex.com/apple/swift-nio/main/documentation/niocore/eventloop) from **SwiftNIO**.
33
33
34
34
```swift
35
35
importNIOCore
36
+
importNIOPosix
36
37
importRediStack
37
38
38
-
let eventLoop: EventLoop =...
39
+
let eventLoop: EventLoop =NIOSingletons.posixEventLoopGroup.any()
39
40
let connection = RedisConnection.make(
40
41
configuration: try .init(hostname: "127.0.0.1"),
41
42
boundEventLoop: eventLoop
@@ -76,7 +77,7 @@ Check out [CONTRIBUTORS.txt](https://github.com/swift-server/RediStack/blob/main
0 commit comments