-
initialise the blocking queue
Declaration
Objective-C
- (BlockingQ *)init;Swift
init!()Return Value
blocking queue instance
-
A thread-safe operation to remove the first item in the queue - parameter: timeout period in millisec consumer thread waits before returning if queue is empty - returns: an object which is a subtype of Node
Declaration
Objective-C
- (id)take:(uint32_t)timeout;Swift
func take(_ timeout: UInt32) -> Any!Parameters
timeoutperiod in millisec consumer thread waits before returning if queue is empty
Return Value
an object which is a subtype of Node
View on GitHub
BlockingQ Class Reference