These are the slides for the last session on coroutines. In this session I how we can test suspending functions and functions that launch coroutines using coroutine builders.
Why use coroutines? What is a coroutine context, why do we need it? What are jobs, and their state? What are dispatchers and how do they help? And So much more... Just like DSTV
kind to the next developer so on & so forth Evaluating and verifying the accuracy of your code What is testing? Why should we test? action performed WHEN expected outcome of the action SHOULD Thing under test GIVEN
fun main() { // given & when val actual = add(1, 2) val expected = 3 // should if(expected != actual) println("Test Failed !") else println("Test Passed...") } 06