Topic: async
-
Rust Pin: preserve the pointee address without freezing the pointer variable
Diagnose pinning errors by identifying the address-sensitive value and the operation that could move it.
-
Following asynchronous tool handles through to a terminal outcome
Prevent an agent from reporting success when a tool has merely accepted work or returned a handle for an operation that is still running.
-
Handling errors in Promises and async/await
An async function turns a throw into a rejection and await rethrows it; every rejection needs an owner. Wrap only what you can recover from, never leave a promise floating, use allSettled when partial failure is acceptable, and register a last-resort unhandledrejection handler.
-
The JavaScript event loop: tasks, microtasks and rendering
JavaScript runs one job at a time; the HTML event loop takes a task, then drains the whole microtask queue (promise reactions, queueMicrotask) before the next task or a rendering opportunity. Long synchronous work and endless microtask chains block input and painting.
-
ContextVar restoration: reset with the token instead of guessing the previous value
Preserve nested request context by restoring exactly the state that existed before a temporary override.
Machine-readable: JSON