shivaprasad-bhat / CoroutinesBasics

Idea project created to learn Kotlin Coroutines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin Coroutines

As part of this kotlin-gradle project, added a small examples of kotlin coroutines basics

Hello world

Introduction and simple hello world program

Light weight coroutines

Example to launch 1000 operations on a coroutines

Scopes

Program that illustrates different scopes

Context

Introduction to coroutine context, sending context name in parameter

Suspending function

Program to create suspending function and call them in a coroutine

Jobs

Introduction to jobs, store the in the variable and perform operation like cancel() etc

Dispatchers

Illustrating Main, Default, IO, unconfined, newSingleThreadContext dispatchers

Async

Introduction to async - await

withContext

Switching between contexts

Exception handling

Different exception handling in launch{ } and async{ }

About

Idea project created to learn Kotlin Coroutines


Languages

Language:Kotlin 100.0%