diff --git a/21-context-managers-transactions.html b/21-context-managers-transactions.html index 1afe3c9..589a065 100644 --- a/21-context-managers-transactions.html +++ b/21-context-managers-transactions.html @@ -1,10 +1,4 @@ -
-

title: Context managers and transactions -layout: nuggets.html.pug -category: Advanced examples -level: 2

-

date: 2007-01-05

-

Context managers are a useful tool. They automatically dispose of resources +Context managers and transactions

Fork me on GitHub

Context managers and transactions

Context managers are a useful tool. They automatically dispose of resources when the operation within the context completes or an error happens in that context.

Lets agree that all our disposable resources have a .dispose() method. How @@ -114,3 +108,6 @@

Notes

// all resources are disposed of })

The possibilities are... endless!

+
\ No newline at end of file diff --git a/index.html b/index.html index a61495a..21f1300 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,3 @@ -Promise nuggets
Fork me on GitHub

Promise nuggets

\ No newline at end of file