Skip to content

AnirudhPudari/KotlinFlows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KotlinFlows

Summary

This repository is a collection of code examples on my understanding of kotlin flows. It includes ways to construct flows using flow builders,some intermediate and terminal operators and also exception handling.

Contents

  • How are Flows Constructed?
  • Intermediate Operators
  • Terminal Operators
  • Exceptions

Flow Operators covered

  • flow{...}
  • asFlow()
  • flowOf()
  • map()
  • filter()
  • take
  • zip
  • collect()
  • toList()
  • toSet()
  • single()
  • reduce()
  • fold()

Find this repository useful? ❤️

  • Support it by starring this repository. ⭐

  • And follow me on Medium

Pre-requisites

  • Experience with Kotlin syntax.
  • How to create and run a project in IntelliJ IDEA.

Getting Started

  • Install IntelliJ IDEA Studio, if you don't already have it.
  • Download the sample.
  • Import the sample into IntelliJ IDEA Studio.
  • Build and run the sample.