Closed bakkot closed 10 months ago
There's a TODO asking this question, so here's the answer: resources should be closed in LIFO order, as if you'd nested try-finally blocks. See also the dispose method of the DisposableStack, which does disposing "in reverse list order".
There's a TODO asking this question, so here's the answer: resources should be closed in LIFO order, as if you'd nested try-finally blocks. See also the dispose method of the DisposableStack, which does disposing "in reverse list order".