scopeGuard
fn
auto scopeGuard(alias fn)()Creates a scope guard that calls the given delegate on scope exit.
Parameters
fn | The cleanup function to call |
Returns
A ScopeGuard that will call fn when destroyed
auto scopeGuard(alias fn)()Creates a scope guard that calls the given delegate on scope exit.
fn | The cleanup function to call |