Control
object Control
Value members
Concrete methods
def withResourceAsync[R <: AutoCloseable, U](resource: R)(body: R => Future[U])(implicit sc: ExecutionContext): Future[U]
A loan pattern for Future[U].
A loan pattern for Future[U].
TODO: Test this after async test is available in 22.5.0
def withResources[R1 <: AutoCloseable, R2 <: AutoCloseable, U](resource1: R1, resource2: R2)(body: (R1, R2) => U): U