Skip to content

Commit

Permalink
Update Readme.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Husseinhj authored Oct 13, 2017
1 parent b9a3bf6 commit e9310f8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,35 @@ interval is per second.
```objc
[queue setQueueTimeInterval:60];
```
**Dequeue count:**
dequeue periodic with arrayOfObjects with set dequeueCount :
``` objc
_queue.dequeueCount = 10;
```
**delegate :**
dequeue just single object :
```objc
-(void) dequeueWithTick:(id)object{
NSLog([NSString stringWithFormat:@"Dequeue periodic ('%.01f') with value : %@ \n",
[queue queueTimeInterval],object]);
}
```
dequeue arrayOfObjects with set dequeueCount :
```objc
-(void) dequeueArrayWithTick:(NSArray<id> *)objects{
NSString *message = @"";
for (id object in objects) {
message = [message stringByAppendingString:[NSString stringWithFormat:@"%@ \n",object]];
}
NSLog([NSString stringWithFormat:@"%@ Dequeue periodic ('%.01f') with value : %@ \n",_logTextView.text,[_queue queueTimeInterval],message]);
}
```

## Installation
----------
Add the following to your `Podfile`:
Install from [CocoaPod.](https://cocoapods.org/?q=TimerHJQueue)
``` ruby
pod 'TimerHJQueue', '~> 1.0.1'
pod 'TimerHJQueue', '~> 1.0.2'
```
Then run `pod install`.

0 comments on commit e9310f8

Please sign in to comment.