Skip to content

Commit 9298895

Browse files
committed
updated to latest RunLoop
1 parent fdcf6e2 commit 9298895

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Cartfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
github "crossroadlabs/Boilerplate" ~> 1.0
2-
github "reactive-swift/RunLoop" ~> 1.0
1+
github "reactive-swift/RunLoop" ~> 0.2

ExecutionContext/ExecutionContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public extension ExecutionContextProtocol {
113113
let sema = RunLoop.semaphore()
114114

115115
async {
116-
result = materializeAny(task)
116+
result = materialize(task)
117117
let _ = sema.signal()
118118
}
119119

ExecutionContext/RunLoopExecutionContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ private class ParallelContext : ExecutionContextBase, ExecutionContextProtocol {
4242
}
4343
} catch let e as CError {
4444
switch e {
45-
case .Unknown:
45+
case .unknown:
4646
print("Got unknown CError while creating pthread")
47-
case .Code(let code):
47+
case .code(let code):
4848
print("Got CError with code \(code) while creating pthread")
4949
}
5050
} catch {

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ let package = Package(
2020
name: "ExecutionContext",
2121
targets: [Target(name: "ExecutionContext")],
2222
dependencies: [
23-
.Package(url: "https://github.com/crossroadlabs/Boilerplate.git", majorVersion: 1, minor: 0),
24-
.Package(url: "https://github.com/reactive-swift/RunLoop.git", "1.0.0-alpha.2")
23+
.Package(url: "https://github.com/reactive-swift/RunLoop.git", majorVersion: 0, minor: 2)
2524
],
2625
exclude: ["Carthage"]
2726
)

0 commit comments

Comments
 (0)