#kotlinflow wyniki wyszukiwania
⚡ Why and When to Use debounce() in Kotlin Flows 🚀 Ever typed too fast and triggered multiple API calls? debounce() waits for a pause before emitting — great for search boxes or rapid user inputs. #Kotlin #AndroidDev #KotlinFlow #Coroutines
🎯 Why and When to Use sample() in Kotlin Flows ⚡ When your Flow emits too frequently, sample() helps you collect values at fixed intervals — perfect for tracking or sensor data! #Kotlin #AndroidDev #KotlinFlow #Coroutines #ProgrammingTips #DevCommunity
#Flotlin🌊15 - transformWhile - Operator generalizes `takeWhile`. - Applies a function to each value until predicate returns true. For e.g. Continue while the download is not done on upstream flow. #Kotlin #KotlinFlow #Reactive @kotlin See below Snippet example:
Koltin Flow 💡 𝒁𝒊𝒑 𝒐𝒑𝒆𝒓𝒂𝒕𝒐𝒓 - It is mainly used to run 𝒕𝒘𝒐 𝒕𝒂𝒔𝒌𝒔 𝒊𝒏 𝒑𝒂𝒓𝒂𝒍𝒍𝒆𝒍 and return the result of both tasks in a single callback when both tasks get completed. #kotlin #kotlinflow #android #kotlintips
Combine multiple Kotlin flows in a list without waiting for a first value stackoverflow.com/questions/6118… #kotlincoroutines #kotlin #kotlinflow
Unit test the new Kotlin coroutine StateFlow stackoverflow.com/questions/6211… #kotlin #kotlinflow #androidviewmodel #android #kotlincoroutines
Kotlin Flow - is there anything similar to LiveData's emitSource? stackoverflow.com/questions/6802… #androidlivedata #kotlinflow #android #kotlin
#Flotlin🌊13 - `callbackFlow{}` - It allows elements to be produced by code that is running in a different context or concurrently. - It's useful when you're using listener which is an asynchronous operation. Try it here⌨️: play.kotlinlang.org/embed?short=mY… #Kotlin #KotlinFlow #Reactive
#Flotlin 2 - `map` - `map` operator can be used on the upstream flow. - It returns a downstream flow for further operations. Try it here ⌨️: (Kotlin Playground) pl.kotl.in/-EaVmBx8L?them… #Kotlin #KotlinFlow
#Flotlin🌊15 - Cancellation - Flow collection can be cancelled❌. - Here in this example, we've used `withTimeoutOrNull()` which will cancel coroutine after the specified timeout⏱️. Try it here: pl.kotl.in/YIDhuwwY1 #Kotlin #KotlinFlow
#Flotlin 1 What is Flow?🤔 👉 A cold asynchronous data stream that sequentially emits values and completes normally or with an exception. See this example: pl.kotl.in/IPQaFgRTC?them… #Kotlin #KotlinFlow
#Flotlin 6 - Exception Transparency - Never wrap `emit()` with try and catch. - Exception caused due to upstream flow can be handled using catch operator. Try it here⌨️: play.kotlinlang.org/embed?short=b8… #Kotlin #KotlinFlow
How can I test a Kotlin flow builder with delay() calls? stackoverflow.com/questions/7224… #kotlin #kotlinflow #turbine
How to observe ContentProvider changes for coroutine flow stackoverflow.com/questions/6777… #kotlinflow #kotlin #androidcontentprovider #kotlincoroutines #android
#Flotlin 3 - `filter` - Similar to the collection's operator. - Performs the operation on upstream flow. - Returns a downstream flow containing only values of the original flow that matches the given predicate. Try it here ⌨️: play.kotlinlang.org/embed?short=fP… #Kotlin #KotlinFlow
Something went wrong.
Something went wrong.
United States Trends
- 1. FINALLY DID IT 538K posts
- 2. The BONK 83.7K posts
- 3. Good Thursday 28K posts
- 4. Godzilla 24.4K posts
- 5. Friday Eve N/A
- 6. JUNGKOOK FOR CHANEL BEAUTY 125K posts
- 7. #thursdayvibes 1,420 posts
- 8. Trey Songz N/A
- 9. Usher 4,140 posts
- 10. Shaggy 2,445 posts
- 11. Doug Dimmadome 13.8K posts
- 12. Lakers 47.9K posts
- 13. Dolly Parton 4,408 posts
- 14. Oracle 22.3K posts
- 15. Zane 6,286 posts
- 16. Code Pink 2,644 posts
- 17. Spurs 38.2K posts
- 18. TOP CALL 10.7K posts
- 19. Jim Ward 14.1K posts
- 20. PETA 37.8K posts