An open API service indexing awesome lists of open source software.

https://github.com/abhineshchandra1234/coroutinesbuilder

This project covers different Coroutine Builders like launch, async, runBlocking.
https://github.com/abhineshchandra1234/coroutinesbuilder

android androidappdevelopment kotlin kotlin-android mobile-development

Last synced: 18 days ago
JSON representation

This project covers different Coroutine Builders like launch, async, runBlocking.

Awesome Lists containing this project

README

          

# Coroutine Builder in kotlin

This project covers different Coroutine Builders like launch, async, runBlocking.
It also covers different methods like join, await with very easy to understand implementation.
It also contains unit test for the suspend func.

## Contents

- launch
- async
- join
- await
- unit test for suspend func

## Flow diagram for coroutine functions

![launch_async](https://github.com/abhineshchandra1234/CoroutinesBuilder/blob/master/src/main/images/launch_async.png)
![GlobalScope_launch_async](https://github.com/abhineshchandra1234/CoroutinesBuilder/blob/master/src/main/images/GlobalScope_launch_async.png)
![job_await_join_cancel](https://github.com/abhineshchandra1234/CoroutinesBuilder/blob/master/src/main/images/job_await_join_cancel.png)

## References

- [coroutine builder](https://youtu.be/lmRzRKIsn1g?t=2190)
- [coroutines on android](https://medium.com/androiddevelopers/coroutines-on-android-part-ii-getting-started-3bff117176dd#:~:text=The%20first%20one%20is%20fetched,be%20returned%20to%20the%20caller)
- [coroutine medium article](https://medium.com/@abhineshchandra1234/coroutine-builder-part-2-c279466f54fb)