Skip to content

Commit

Permalink
remove param in co_delay
Browse files Browse the repository at this point in the history
  • Loading branch information
NianJi committed Apr 25, 2019
1 parent 7100012 commit 80d1aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coswift/coswift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public func co_delay(_ seconds: TimeInterval) throws {

timer.resume()

try _ = chan.receive(onCancel: { (chan) in
try _ = chan.receive(onCancel: { _ in
timer.cancel()
})
}

0 comments on commit 80d1aa9

Please sign in to comment.