BBipininbpn.hashnode.dev·Apr 24, 2025 · 2 min readFlows in KotlinFlow vs Stateflow vs Sharedflow First, the Base Type: Flow<T> A cold asynchronous stream. Starts emitting only when collected. Use for standard data streams (e.g., database queries, API paginated responses). fun getNumbers(): Flow<Int> = flow { ...00
BBipininbpn.hashnode.dev·Apr 24, 2025 · 2 min readCoroutine scope vs Supervisor scopeCoroutine scope : default behavior (launch in coroutineScope or runBlocking). If one child fails, it cancels the entire scope — all other siblings are canceled too. Supervisor scope: failure in one child won’t cancel the other children. Coroutine...00
BBipininbpn.hashnode.dev·Apr 21, 2025 · 4 min readBeginner’s Guide to Kotlin CoroutinesKotlin coroutines are a powerful feature for handling asynchronous programming, making it easier to write clean, non-blocking code. Unlike traditional threads, coroutines are lightweight, allowing you to run thousands of them without overwhelming sys...00
BBipininbpn.hashnode.dev·Feb 10, 2025 · 1 min readShort brief of JWTJWT (JSON Web Token) is a compact and secure way to transmit information between parties as a JSON object. It is commonly used for authentication and authorization in web applications. Key Features: Structure: Consists of three parts – Header, Paylo...00