Cancelation Terminology 0 ▲ matklad 1 hour ago · 5 min read1088 words · Tech · hide · 0 comments Cancelation Terminology Aug 31, 2026 A short note explaining the difference between synchronous cancelation, asynchronous cancelation, and graceful shutdown. I am not too attached to these specific three terms, but I want to call your attention to the three things behind them, which are important not to confuse with each other. synchronous cancelation is an (often implicit) control flow structure. It unwinds the stack and looks like this: task.cancel(); // The task will have finished by this point. Synchronous cancelation is a bit like Molière’s prose — we do it all the time, but not necessarily in full consciousness. The primary source of synchronous cancelation is error handling — every time an Exception is thrown or an error returned, the code promptly breaks out of all the loops, ifs, and blocks, invoking the necessary cleanup actions via RAII, finally, with/try with resources or defer. asynchronous cancelation is a communication protocol between two parties. One party requests… No comments yet. Log in to reply on the Fediverse. Comments will appear here.