Last active
April 2, 2016 17:23
-
-
Save MoralAlberto/f43fe1840d5c030373f88ab914ca96bc to your computer and use it in GitHub Desktop.
Revisions
-
MoralAlberto revised this gist
Apr 2, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,3 @@ func marvelCharacter() { API.characters(pageSize, offset: offset) .throttle(2.0, onScheduler: QueueScheduler.mainQueueScheduler) -
MoralAlberto created this gist
Apr 2, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ //HeroesCollectionViewModel func marvelCharacter() { API.characters(pageSize, offset: offset) .throttle(2.0, onScheduler: QueueScheduler.mainQueueScheduler) .on(failed: { error in // Handle Server Error }) .startWithNext { [unowned self] characters in self.canReloadUI = true } } }