Skip to content

sridhar-sp/android-template-repo

Repository files navigation

android-coroutine-play

Write code using Susped (state machine ) and regular Java thread (executor) How coroutine is better compared to Java thread (from executor)

Submit task from one thread to other using dispatchers and executor (talk about thread event loop)

How to create coroutine (coroutine builder)

Start and Cancel coroutine

What is coroutine context

What is Job (return from coroutine builder : launch)

Coroutine context hold a map of elements, accessed by Key

Thread.stop from Java 1.0 and soon deprecated in next release in favour of cancel ( reconfirm this point)

suspendCoroutine and suspendCancellableCoroutine

Read about CSP style

Thread.sleep vs delay

How coroutine can suspend and resume at different thread

Context switch

About

Template repository for android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages