Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Release 0.7.0 with DispatchTimeInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rupérez committed Jun 15, 2017
1 parent 38d80ec commit 6099d39
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release 0.7.0

- [x] Using DispatchTimeInterval instead TimeInterval

# Release 0.6.1

- [x] @discardableResult
Expand Down
2 changes: 1 addition & 1 deletion Kommander.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Kommander'
s.version = '0.6.1'
s.version = '0.7.0'
s.summary = 'A command pattern implementation written in Swift 3'

s.homepage = 'https://github.com/intelygenz/Kommander-iOS'
Expand Down
8 changes: 4 additions & 4 deletions Kommander.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@
CURRENT_PROJECT_VERSION = "$(DYLIB_CURRENT_VERSION)";
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 3VW789WSMP;
DYLIB_COMPATIBILITY_VERSION = 0.6.0;
DYLIB_CURRENT_VERSION = 0.6.1;
DYLIB_COMPATIBILITY_VERSION = 0.7.0;
DYLIB_CURRENT_VERSION = 0.7.0;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down Expand Up @@ -1035,8 +1035,8 @@
CURRENT_PROJECT_VERSION = "$(DYLIB_CURRENT_VERSION)";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 3VW789WSMP;
DYLIB_COMPATIBILITY_VERSION = 0.6.0;
DYLIB_CURRENT_VERSION = 0.6.1;
DYLIB_COMPATIBILITY_VERSION = 0.7.0;
DYLIB_CURRENT_VERSION = 0.7.0;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down
Binary file added Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kommander
![Kommander](https://raw.githubusercontent.com/intelygenz/Kommander-iOS/master/Logo.png)

[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](http://twitter.com/intelygenz)
[![Version](https://img.shields.io/cocoapods/v/Kommander.svg?style=flat)](http://cocoapods.org/pods/Kommander)
Expand Down
6 changes: 3 additions & 3 deletions Source/Dispatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ open class Dispatcher {
}

/// Execute block in DispatchQueue after delay
open func execute(after delay: TimeInterval, block: @escaping () -> Void) {
open func execute(after delay: DispatchTimeInterval, block: @escaping () -> Void) {
dispatchQueue.asyncAfter(deadline: .now() + delay, execute: block)
}

/// Execute block in DispatchQueue using custom DispatchWorkItem instance after delay
open func execute(after delay: TimeInterval, qos: DispatchQoS?, flags: DispatchWorkItemFlags?, block: @escaping @convention(block) () -> ()) {
open func execute(after delay: DispatchTimeInterval, qos: DispatchQoS?, flags: DispatchWorkItemFlags?, block: @escaping @convention(block) () -> ()) {
dispatchQueue.asyncAfter(deadline: .now() + delay, qos: qos ?? .default, flags: flags ?? .assignCurrentContext, execute: block)
}

/// Execute DispatchWorkItem instance in DispatchQueue after delay
open func execute(after delay: TimeInterval, work: DispatchWorkItem) {
open func execute(after delay: DispatchTimeInterval, work: DispatchWorkItem) {
dispatchQueue.asyncAfter(deadline: .now() + delay, execute: work)
}

Expand Down
4 changes: 2 additions & 2 deletions Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.6.0</string>
<string>0.7.0</string>
<key>CFBundleVersion</key>
<string>0.6.0</string>
<string>0.7.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Source/Kommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ open class Kommand<Result> {
}

/// Execute Kommand<Result> after delay
@discardableResult open func execute(after delay: TimeInterval) -> Self {
@discardableResult open func execute(after delay: DispatchTimeInterval) -> Self {
executor?.execute(after: delay, block: {
self.execute()
})
Expand Down Expand Up @@ -128,7 +128,7 @@ open class Kommand<Result> {
}

/// Cancel Kommand<Result> after delay
open func cancel(_ throwingError: Bool = false, after delay: TimeInterval) {
open func cancel(_ throwingError: Bool = false, after delay: DispatchTimeInterval) {
executor?.execute(after: delay, block: {
self.cancel(throwingError)
})
Expand Down
4 changes: 2 additions & 2 deletions Source/Kommander.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ open class Kommander {
}

/// Execute [Kommand<Result>] instances collection concurrently or sequentially after delay
open func execute<Result>(_ kommands: [Kommand<Result>], concurrent: Bool = true, waitUntilFinished: Bool = false, after delay: TimeInterval) {
open func execute<Result>(_ kommands: [Kommand<Result>], concurrent: Bool = true, waitUntilFinished: Bool = false, after delay: DispatchTimeInterval) {
executor.execute(after: delay) {
self.execute(kommands, concurrent: concurrent, waitUntilFinished: waitUntilFinished)
}
Expand Down Expand Up @@ -136,7 +136,7 @@ open class Kommander {
}

/// Cancel [Kommand<Result>] instances collection after delay
open func cancel<Result>(_ kommands: [Kommand<Result>], throwingError: Bool = false, after delay: TimeInterval) {
open func cancel<Result>(_ kommands: [Kommand<Result>], throwingError: Bool = false, after delay: DispatchTimeInterval) {
executor.execute(after: delay) {
self.cancel(kommands, throwingError: throwingError)
}
Expand Down

0 comments on commit 6099d39

Please sign in to comment.