Tagged articles
23 articles
Page 1 of 1
AndroidPub
AndroidPub
Aug 7, 2025 · Fundamentals

Mastering Kotlin Flow Cancellation: 13 Essential Techniques Explained

This comprehensive guide explores why cancelling Kotlin Flow is crucial for resource management, user experience, network efficiency, and battery life, and walks through thirteen practical cancellation methods—including Job cancellation, structured concurrency, time‑outs, boolean flags, operators like cancellable, take, first, single, and advanced post‑processing techniques—complete with runnable code examples and outputs.

FlowKotlincancellation
0 likes · 21 min read
Mastering Kotlin Flow Cancellation: 13 Essential Techniques Explained
AndroidPub
AndroidPub
Jul 3, 2025 · Mobile Development

Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs

This article explains how Kotlin coroutine cancellation works, why catching CancellationException can create zombie coroutines, and provides concrete patterns—using isActive, coroutineContext.ensureActive(), and proper try‑catch placement—to reliably stop repeating tasks without resource leaks.

AsyncCancellationExceptionKotlin
0 likes · 9 min read
Mastering Kotlin Coroutine Cancellation: Avoid Zombie Coroutines and Hidden Bugs
JavaScript
JavaScript
Jun 13, 2025 · Frontend Development

How to Cancel Ongoing Promises in JavaScript with AbortController

This article explains why native JavaScript Promises cannot be cancelled, introduces the AbortController API as the standard solution, and provides practical examples for using it with fetch and custom asynchronous functions to safely abort operations and improve application robustness.

AbortControllerJavaScriptPromise
0 likes · 6 min read
How to Cancel Ongoing Promises in JavaScript with AbortController
Go Programming World
Go Programming World
Dec 10, 2024 · Backend Development

Deep Dive into Go's Context Package: Design, Implementation, and Usage

This article thoroughly explains the design and implementation of Go's context package, covering its core interfaces, various concrete types, cancellation propagation, deadline handling, value storage, and the internal mechanisms that enable concurrent-safe control flow and data passing across context trees.

Deadlinecancellationconcurrency
0 likes · 30 min read
Deep Dive into Go's Context Package: Design, Implementation, and Usage
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Sep 29, 2024 · Frontend Development

Why the AbortController API Is a Game‑Changer for JavaScript

The article shows that the standard AbortController API can do far more than just cancel fetch requests—it can cleanly remove event listeners, combine multiple abort signals, control streams, and even make database transactions cancelable, with concrete code examples and compatibility notes.

AbortControllerAbortSignalJavaScript
0 likes · 13 min read
Why the AbortController API Is a Game‑Changer for JavaScript
FunTester
FunTester
Jul 24, 2024 · Backend Development

Managing Request Scope, Cancellation, and Timeouts with Go's context Package

This article explains how to use Go's context package for managing request-scoped data, cancellation, deadlines, and timeouts, compares it with Java's ThreadLocal approach, and provides practical code examples for creating contexts, handling goroutine lifecycles, and applying context in network programming.

GoTimeoutcancellation
0 likes · 12 min read
Managing Request Scope, Cancellation, and Timeouts with Go's context Package
Ops Development & AI Practice
Ops Development & AI Practice
Apr 5, 2024 · Fundamentals

Mastering Go’s Context: Design Principles, Features, and Real‑World Usage

Go’s Context package provides a simple, standardized way to control goroutine lifecycles, enforce timeouts, cancel operations, and pass request-scoped values, embodying Go’s philosophy of clarity and efficiency; this article outlines its key characteristics, design philosophy, and demonstrates practical HTTP cancellation with code.

GoGoroutinecancellation
0 likes · 6 min read
Mastering Go’s Context: Design Principles, Features, and Real‑World Usage
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 23, 2023 · Frontend Development

Implementing Cancellation and Progress Notification for JavaScript Promises

This article examines advanced JavaScript Promise techniques by presenting practical implementations for cancelling a pending promise and for notifying progress during asynchronous operations, complete with code examples, explanations of underlying concepts, and discussion of their relevance in interviews and real‑world development.

JavaScriptProgressPromise
0 likes · 10 min read
Implementing Cancellation and Progress Notification for JavaScript Promises
MaGe Linux Operations
MaGe Linux Operations
Nov 15, 2023 · Backend Development

Mastering Go’s Context: How to Control Goroutine Lifecycles and Cancel Operations

This article explains the purpose and design of Go’s Context, how it propagates cancellation, deadlines, and values across goroutine trees, and demonstrates using the context package’s functions such as Background, WithCancel, WithDeadline, WithTimeout, and WithValue to manage request‑scoped state effectively.

Goroutinecancellationconcurrency
0 likes · 11 min read
Mastering Go’s Context: How to Control Goroutine Lifecycles and Cancel Operations
Tencent Cloud Developer
Tencent Cloud Developer
Sep 23, 2022 · Backend Development

Deep Dive into Go Context Package: Source Code Analysis and Design Patterns

An in‑depth examination of Go’s compact context package reveals its core interface, internal implementations like emptyCtx, cancelCtx, timerCtx, and valueCtx, the propagation and cancellation mechanisms, and practical design patterns, concluding with essential best‑practice guidelines for passing, canceling, and using context values safely.

Design PatternsGoGoroutine
0 likes · 18 min read
Deep Dive into Go Context Package: Source Code Analysis and Design Patterns
Tencent Cloud Developer
Tencent Cloud Developer
Jun 29, 2022 · Fundamentals

C++ Asynchronous Programming: Understanding libunifex and Sender/Receiver Model

This article thoroughly explains libunifex’s sender/receiver model for C++ asynchronous programming, covering its design goals, module structure, pipeline composition, key functions like schedule, then, sync_wait, and the connect/start mechanisms, while demonstrating practical examples and integration with C++20 coroutines and cancellation support.

C++CoroutinesPipeline
0 likes · 16 min read
C++ Asynchronous Programming: Understanding libunifex and Sender/Receiver Model
Alibaba Terminal Technology
Alibaba Terminal Technology
May 25, 2022 · Frontend Development

How to Prevent Concurrent Rendering Bugs in OpenSumi’s File Tree

This article analyzes the concurrent rendering problems that arise in OpenSumi’s file‑tree after removing throttling, explains their root causes, and presents a comprehensive solution—including operation prioritization, cancellable actions, and queued updates—to achieve both high performance and stable user interaction.

Concurrent RenderingOpenSumicancellation
0 likes · 13 min read
How to Prevent Concurrent Rendering Bugs in OpenSumi’s File Tree
TiPaiPai Technical Team
TiPaiPai Technical Team
May 28, 2021 · Backend Development

Mastering Go’s Context: Cancellation, Timeouts, and Value Propagation

This article explains Go’s context package, covering its purpose for managing goroutine lifecycles, the key interfaces and implementations such as emptyCtx, cancelCtx, timerCtx, and valueCtx, and demonstrates how to use WithCancel, WithDeadline, WithTimeout, and WithValue to control execution, propagate cancellations, and pass values across call chains.

GoTimeoutcancellation
0 likes · 12 min read
Mastering Go’s Context: Cancellation, Timeouts, and Value Propagation
360 Tech Engineering
360 Tech Engineering
Dec 18, 2020 · Frontend Development

Cancelling Duplicate Axios Requests and Building a Reusable Wrapper

This guide explains the scenarios that cause duplicate HTTP requests in web applications, demonstrates two Axios cancellation techniques, and shows how to encapsulate the logic in a reusable module with request tracking, interceptor integration, npm linking, and open‑source contribution steps.

JavaScriptaxioscancellation
0 likes · 9 min read
Cancelling Duplicate Axios Requests and Building a Reusable Wrapper
High Availability Architecture
High Availability Architecture
Feb 20, 2020 · Fundamentals

Structured Concurrency in Rust: Concepts, Scope Implementation, and Practical Examples

This article introduces the challenges of traditional concurrency, explains the structured concurrency paradigm, surveys its history and implementations across languages, and provides a detailed Rust example using the task_scope library with Scope, CancelScope, timeout handling, nested scopes, and a practical Happy Eyeballs exercise.

asynchronous programmingcancellationconcurrency
0 likes · 12 min read
Structured Concurrency in Rust: Concepts, Scope Implementation, and Practical Examples