We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88cde59 commit d280dfaCopy full SHA for d280dfa
Sources/AndroidLooper/SerialExecutor.swift
@@ -26,18 +26,15 @@ public extension Looper {
26
27
/// Initialize with Android Looper
28
internal init(looper: consuming Looper) throws(AndroidLooperError) {
29
- let looperHandle = looper.handle
30
// open fd
31
let fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK) // TODO: Move to System / Socket package
32
if fd < 0 {
33
throw .bionic(Errno(rawValue: errno))
34
}
35
-
36
// initialize
37
let eventFd = FileDescriptor(rawValue: fd)
38
self.eventFd = eventFd
39
self.looper = looper
40
41
// Add fd to Looper
42
try configureLooper()
43
0 commit comments