This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Returning Kommand on execute. Optional result and error.
- Loading branch information
Showing
5 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,12 @@ | |
[![Platform](https://img.shields.io/cocoapods/p/Kommander.svg?style=flat)](http://cocoapods.org/pods/Kommander) | ||
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) | ||
|
||
|
||
**Kommander** is a Swift library to manage the task execution in different threads. Through the definition a simple but powerful concept, [**Kommand**](https://en.wikipedia.org/wiki/Command_pattern). | ||
|
||
Inspired on the Java library [**Kommander**](https://github.com/Wokdsem/Kommander) from [**Wokdsem**](https://github.com/Wokdsem). | ||
|
||
|
||
![Kommander](https://raw.githubusercontent.com/intelygenz/Kommander-iOS/master/Kommander.png) | ||
|
||
## Features | ||
|
@@ -17,8 +21,8 @@ | |
- [x] Cancel kommand or multiple kommands | ||
- [x] Set kommand success block | ||
- [x] Set kommand error block | ||
- [x] Main threat dispatcher | ||
- [x] Current threat dispatcher | ||
- [x] Main thread dispatcher | ||
- [x] Current thread dispatcher | ||
- [x] Custom OperationQueue dispatcher | ||
- [x] Custom DispatchQueue dispatcher | ||
- [x] Execute single or multiple Operation | ||
|
@@ -39,13 +43,13 @@ pod 'Kommander' | |
For Swift 2 compatibility use: | ||
|
||
```ruby | ||
pod 'Kommander', :git => 'https://github.com/intelygenz/Kommander-iOS.git', :tag => '0.2.2-swift2' | ||
pod 'Kommander', :git => 'https://github.com/intelygenz/Kommander-iOS.git', :tag => '0.2.3-swift2' | ||
``` | ||
|
||
For Objective-C compatibility use: | ||
|
||
```ruby | ||
pod 'Kommander', :git => 'https://github.com/intelygenz/Kommander-iOS.git', :tag => '0.2.2-objc' | ||
pod 'Kommander', :git => 'https://github.com/intelygenz/Kommander-iOS.git', :tag => '0.2.3-objc' | ||
``` | ||
|
||
#### Or you can install it with [Carthage](https://github.com/Carthage/Carthage): | ||
|
@@ -77,12 +81,12 @@ Kommander().makeKommand { () -> Void in | |
|
||
## Authors | ||
|
||
'Juan Trías' => '[email protected]', 'Roberto Estrada' => '[email protected]' | ||
|
||
[alexruperez](https://github.com/alexruperez), [email protected] | ||
|
||
[juantrias](https://github.com/juantrias), [email protected] | ||
[RobertoEstrada](https://github.com/RobertoEstrada), [email protected]' | ||
|
||
[RobertoEstrada](https://github.com/RobertoEstrada), [email protected] | ||
|
||
## License | ||
|
||
Kommander is available under the MIT license. See the LICENSE file for more info. | ||
Kommander is available under the MIT license. See the LICENSE file for more info. |