Control

wvlet.airframe.control.Control$
object Control

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Control.type

Members list

Concise view

Value members

Concrete methods

def closeResources[R <: AutoCloseable](resources: R*): Unit
def withResource[R <: AutoCloseable, U](resource: R)(body: R => U): U
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

Attributes

def withResources[R1 <: AutoCloseable, R2 <: AutoCloseable, U](resource1: R1, resource2: R2)(body: (R1, R2) => U): U