Resilience Examples

Survive flaky dependencies: dedupe in-flight work, cancel cleanly, and classify what is worth retrying.

734 published examples — showing latest 48

Code examples for Resilience

javascriptSnippet

Late abort Listeners Never Fire

Adding an abort listener after the signal already aborted does not throw and does not fire, so cleanup paths must check signal.aborted before subscribing.

rustSnippet

Vec leak Into Static Slice

Convert an owned Vec into a static-lifetime slice with Vec::leak, trading the deallocation path for data that lives for the whole program.

Showing 48 of 734 verified Resilience examples. Filter the full catalog by language, framework, or keyword in Explore.

Browse & filter all 734 examples in Explore →