Loading files
8c2908ee5This file is pinned to the selected release. Download the original to open it in your design tool.
abstract class IDisposable {
void dispose();
}
R using<T extends IDisposable, R>(T resource, R Function(T) action) {
try {
return action(resource);
} finally {
resource.dispose();
}
}