Tag

defer

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 28, 2024 · Frontend Development

Understanding React Router 6.4 Data APIs: Loader, Defer, and Await

This article explains how React Router 6.4’s new Data APIs—loader functions, defer, and the Await component—separate data fetching from rendering, improve client‑side and server‑side rendering performance, and provide a smoother user experience through progressive loading and streaming.

Data APIsReact Routerawait
0 likes · 24 min read
Understanding React Router 6.4 Data APIs: Loader, Defer, and Await
Go Programming World
Go Programming World
Feb 19, 2024 · Backend Development

Implementing Context Managers in Go: Emulating Python's with Using defer and Anonymous Functions

This article explores how to replicate Python's context manager behavior in Go by examining defer's delayed execution, demonstrating its limitations in loops, and presenting three solutions—anonymous functions, a WithClose helper, and a withLock-inspired pattern—to ensure timely resource release.

Anonymous FunctionContext ManagerGo
0 likes · 10 min read
Implementing Context Managers in Go: Emulating Python's with Using defer and Anonymous Functions
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Feb 26, 2021 · Backend Development

Understanding Golang v1.0 Coroutine Implementation: Creation, Switching, and Runtime Mechanics

This article explains the internal workings of Golang v1.0 coroutines, covering their creation, stack‑switching logic, scheduler design, virtual‑memory basics, assembly examples, channel handling, socket event loops, and the low‑level implementation of defer, panic, and recover.

Concurrencyassemblydefer
0 likes · 33 min read
Understanding Golang v1.0 Coroutine Implementation: Creation, Switching, and Runtime Mechanics
360 Tech Engineering
360 Tech Engineering
Apr 13, 2020 · Backend Development

Understanding Exception and Error Handling in Go

This article explains how Go handles exceptions and errors using defer, panic, and recover, compares it with try‑catch in other languages, demonstrates the built‑in error interface, custom error types, and provides multiple code examples and analyses of their output.

Error handlingExceptionGo
0 likes · 6 min read
Understanding Exception and Error Handling in Go