Is there anything standardized within the Scala library to support the disposable resource pattern?
I mean something similar to that supported by C# and .NET just to mention one.
For example does official Scala library provide something like this:
trait Disposable { def dispose() }
class Resource extends Disposable
using (new Resource) { r =>
}
Note: I'm aware of this article «Scala finally block closing/flushing resource» but it seems not integrated within the standard lib