This looks most similar to golang’s defer. It runs cleanup code when leaving the current scope. It differs from try/finally, c# “using,” and Java try-with-resources in that it doesn’t require the to-be-disposed object…
This looks most similar to golang’s defer. It runs cleanup code when leaving the current scope. It differs from try/finally, c# “using,” and Java try-with-resources in that it doesn’t require the to-be-disposed object…