FIFOArrayDataSource
public class FIFOArrayDataSource<T> : TimeOrderedResultsControllerDataSource where T : UniquelyIdentifiable
A TimeOrderedResultsControllerDataSource that is backed by a last-in, first-out queue which is threadsafe and calls observers when items loaded or added.
Note
You can append items, modify observers and read the queue (usingsnapshot()
) from any queue.
-
Undocumented
Declaration
Swift
public init(maxCount: Int)
-
Undocumented
Declaration
Swift
public func append(_ item: T)
-
Return a threadsafe copy of the current items
Declaration
Swift
public func snapshot() -> Array<T>
-
Undocumented
Declaration
Swift
public func add(observer: TimeOrderedResultsControllerDataSourceObserver, using queue: DispatchQueue)
-
Undocumented
Declaration
Swift
public func remove(observer: TimeOrderedResultsControllerDataSourceObserver)
-
Undocumented
Declaration
Swift
public func loadItems(after item: Any?, maxCount: Int)