Add -waitUntilAllUpdatesAreCommitted to ASTableView and ASCollectionView

The API allows consumer of ASTableView or ASCollectionCiew to block execution of the main thread until all section and row updates are committed.
This commit is contained in:
Michael Schneider
2016-03-02 19:20:58 -08:00
parent e82d1408d2
commit aa2ae87c81
6 changed files with 41 additions and 0 deletions

View File

@@ -165,6 +165,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)reloadDataImmediately;
/**
* Blocks execution of the main thread until all section and row updates are committed. This method must be called from the main thread.
*/
- (void)waitUntilAllUpdatesAreCommitted;
/**
* Registers the given kind of supplementary node for use in creating node-backed supplementary views.
*