Join Slack
Powered by
<testing the diff between coroutin and thread, I c...
# stackoverflow
u
user
07/13/2022, 3:31 PM
testing the diff between coroutin and thread, I can't get the OOM error when using thread in kotlin
I'm studying coroutine now, and testing some difference with thread. stydying with the kotlin docs, I copied some test code and changed the code for testing thread. the docs said
https://kotlinlang.org/docs/coroutines-basics.html#coroutines-are-light-weight
If you write the same program using threads (remove runBlocking, replace launch with thread, and replace delay with...
2
Views
Open in Slack
Previous
Next