Make data locking API optional

This commit is contained in:
Ryan Nystrom
2015-03-04 10:13:32 -08:00
parent 69dbbae91c
commit 6588e7b665
4 changed files with 10 additions and 6 deletions

View File

@@ -143,8 +143,10 @@
*/
- (ASCellNode *)collectionView:(ASCollectionView *)collectionView nodeForItemAtIndexPath:(NSIndexPath *)indexPath;
@optional
/**
* Indicator to lock the data source for data fetching in asyn mode.
* Indicator to lock the data source for data fetching in async mode.
* We should not update the data source until the data source has been unlocked. Otherwise, it will incur data inconsistence or exception
* due to the data access in async mode.
*
@@ -153,7 +155,7 @@
- (void)collectionViewLockDataSource:(ASCollectionView *)collectionView;
/**
* Indicator to unlock the data source for data fetching in asyn mode.
* Indicator to unlock the data source for data fetching in async mode.
* We should not update the data source until the data source has been unlocked. Otherwise, it will incur data inconsistence or exception
* due to the data access in async mode.
*