Join Nostr
2025-03-25 01:49:59 UTC

yosh on Nostr: I’ve been reading more about control systems, and I’m now thinking: cancellation ...

I’ve been reading more about control systems, and I’m now thinking: cancellation in async programming is a form of feedback control!

Structured concurrency is an attempt to create closed feedback loops where we can apply feedback control (add more work, cancel work) and always observe the output signal (return values, errors).

Unstructured concurrency (e.g. task::spawn) creates open-loop systems that can lose signal and cant always receive feedback. Which is inherently brittle and unstable.