Add wait method to ASCollectionNode (#2416)

This commit is contained in:
Adlai Holler
2016-10-18 11:00:09 -07:00
committed by GitHub
parent 17dcd5f7ec
commit 5a8d0037ec
2 changed files with 10 additions and 0 deletions

View File

@@ -159,6 +159,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)performBatchUpdates:(nullable __attribute((noescape)) void (^)())updates completion:(nullable void (^)(BOOL finished))completion;
/**
* Blocks execution of the main thread until all section and item updates are committed to the view. This method must be called from the main thread.
*/
- (void)waitUntilAllUpdatesAreCommitted;
/**
* Inserts one or more sections.
*