filmov
tv
The Basics - Kotlin Coroutines

Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
🐱👤 Wanna become a member? Join!
📸 Instagram
A coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages.
On Android, coroutines help to manage long-running tasks that might otherwise block the main thread and cause your app to become unresponsive. Over 50% of professional developers who use coroutines have reported seeing increased productivity.
Kotlin, as a language, provides only minimal low-level APIs in its standard library to enable various other libraries to utilize coroutines. Unlike many other languages with similar capabilities, async and await are not keywords in Kotlin and are not even part of its standard library. Moreover, Kotlin's concept of suspending function provides a safer and less error-prone abstraction for asynchronous operations than futures and promises.
Other videos:
🕒Timestamps:
0:00 - Introduction
0:22 - Synchronous vs Asynchronous
2:32 - Dispatchers
3:06 - Non-Blocking Execution
3:39 - Suspend Keyword
4:02 - Practical Examples
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
🐱👤 Wanna become a member? Join!
A coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages.
On Android, coroutines help to manage long-running tasks that might otherwise block the main thread and cause your app to become unresponsive. Over 50% of professional developers who use coroutines have reported seeing increased productivity.
Kotlin, as a language, provides only minimal low-level APIs in its standard library to enable various other libraries to utilize coroutines. Unlike many other languages with similar capabilities, async and await are not keywords in Kotlin and are not even part of its standard library. Moreover, Kotlin's concept of suspending function provides a safer and less error-prone abstraction for asynchronous operations than futures and promises.
Other videos:
🕒Timestamps:
0:00 - Introduction
0:22 - Synchronous vs Asynchronous
2:32 - Dispatchers
3:06 - Non-Blocking Execution
3:39 - Suspend Keyword
4:02 - Practical Examples
Комментарии