Index

RBProcessingQueue.swift

Classes


RBProcessingQueue

Manages a queue of items to be processed.

Properties

The total set of items that were queued to be processed.
public var items Set<AnyHashable> { get }

The set of items that were queued and have been processed.
public var pendingItems Set<AnyHashable> { get }

The set of items that were queued and have not yet been processed.
public var processedItems Set<AnyHashable> { get }

Functions

Adds a new item to the queue to be processed.
@param item : The item to add to the queue.
public func enqueueItem(_ item: AnyHashable)

Marks whether an item in the queue has been processed.
@param item : The item to mark as processed or not processed.
@param processed : Whether or not the item should be marked as processed (true) or unprocessed (false).
public func markItem(_ item: AnyHashable, asProcessed processed: Bool)