CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.

TimerHJQueue 1.0.2

TimerHJQueue 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2017

Maintained by Hussein Habibi Juybari.



  • By
  • Hussein Habibi Juybari

This is a simple queue with Infinite or limit length and also dequeue periodic with timer for iOS platforms Edit Add topics

Usage


HJQueue queue = [[HJQueue alloc] initInfiniteLength];
[queue setDelegate:self];

queue :

[queue enqueue:@(++_counter)]

dequeue :

NSString *obj = [queue dequeue];

Time interval:
interval is per second.

[queue setQueueTimeInterval:60];

delegate :

-(void) dequeueWithTick:(id)object{
    NSLog([NSString stringWithFormat:@"Dequeue periodic ('%.01f') with value : %@ \n",
           [queue queueTimeInterval],object]);
}

Installation


Add the following to your Podfile:
Install from CocoaPod.

    pod 'TimerHJQueue', '~> 1.0.1'

Then run pod install.