Skip to content

Instantly share code, notes, and snippets.

@clementf
Created July 18, 2019 20:59
Show Gist options
  • Select an option

  • Save clementf/b894fdeca63a22f73f1c6c580432eaea to your computer and use it in GitHub Desktop.

Select an option

Save clementf/b894fdeca63a22f73f1c6c580432eaea to your computer and use it in GitHub Desktop.
Markdium-Iterator, how to handle paginated APIs in Crystal, with lazy loading
Playlist.new(playlist_id).tracks.each { |track|
puts "Track name is #{track.name}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment