malko/D.js — pull request #9 by jontra (2013-08-07 14:08:22+00:00)
Title: promise.ensure

Hi,

when (https://github.com/cujojs/when/blob/master/when.js) has a nice 'ensure' feature.
'ensure' function will always be called, no matter if the promise is resolved or rejected.
It is useful for cleanup, etc.

Yoni.