global.namespace.scala.plus.ResourceLoan
Applies the loan pattern to the given function.
Applies the loan pattern to the given function. This is a straightforward translation of Java's basic try-with-resources statement.
try
the function with the nullable resource parameter.