Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 183ed91

Browse files
committed
Merge branch 'xcode8b4' into swift3
2 parents 8007fa6 + c241dcf commit 183ed91

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "pvzig/Starscream" "98d7ccea30621d51a93ee5c155b3f670e37e037b"
2-
github "pvzig/swifter" "8adfae89a6d34cfea1c20d53d8112d1d69e01bd0"
1+
github "pvzig/Starscream" "2fde5c5eb9302439e634753c3aacc794ca2e42e8"
2+
github "pvzig/swifter" "ddbebdde19360a2c9e4e01e5a0642dd12082cc92"

SlackKit/Sources/Client+EventHandling.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ internal extension Client {
8080
channelEventsDelegate?.userTyping(self, channel: channel, user: user)
8181

8282
let timeout = DispatchTime.now() + Double(Int64(5.0 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
83-
DispatchQueue.main.after(when: timeout) {
83+
DispatchQueue.main.asyncAfter(deadline: timeout, execute: {
8484
if let index = self.channels[channelID]?.usersTyping.index(of: userID) {
8585
self.channels[channelID]?.usersTyping.remove(at: index)
8686
}
87-
}
87+
})
8888
}
8989

9090
func channelMarked(_ event: Event) {

SlackKit/Sources/Client+Utilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
// THE SOFTWARE.
2323

24-
public enum ClientError: ErrorProtocol {
24+
public enum ClientError: Error {
2525
case channelDoesNotExist
2626
case userDoesNotExist
2727
}

SlackKit/Sources/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public final class Client: WebSocketDelegate {
4444
}
4545

4646
internal var webSocket: WebSocket?
47-
private let pingPongQueue = DispatchQueue(label: "com.launchsoft.SlackKit", attributes: DispatchQueueAttributes.serial)
47+
private let pingPongQueue = DispatchQueue(label: "com.launchsoft.SlackKit")
4848
internal var ping: Double?
4949
internal var pong: Double?
5050
internal var options: ClientOptions?
@@ -128,7 +128,7 @@ public final class Client: WebSocketDelegate {
128128
//MARK: - RTM Ping
129129
private func pingRTMServerAtInterval(_ interval: TimeInterval) {
130130
let delay = DispatchTime.now() + Double(Int64(interval * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
131-
pingPongQueue.after(when: delay, execute: {
131+
pingPongQueue.asyncAfter(deadline: delay, execute: {
132132
guard self.connected && self.timeoutCheck() else {
133133
self.disconnect()
134134
return

SlackKit/Sources/Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal extension String {
4242

4343
}
4444

45-
internal extension Dictionary where Key: StringLiteralConvertible, Value: AnyObject {
45+
internal extension Dictionary where Key: ExpressibleByStringLiteral, Value: AnyObject {
4646

4747
var requestStringFromParameters: String {
4848
var requestString = ""

SlackKit/Sources/SlackError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
// THE SOFTWARE.
2323

24-
public enum SlackError: String, ErrorProtocol {
24+
public enum SlackError: String, Error {
2525
case AccountInactive = "account_inactive"
2626
case AlreadyArchived = "already_archived"
2727
case AlreadyInChannel = "already_in_channel"

0 commit comments

Comments
 (0)