WithDsl

trait WithDsl[A, I]

DSL for working with managed resources.

Type parameters:
A

The resource type.

I

Type of an implicit value required on resource use.

Since:

2.2.0

Companion:
object
class Object
trait Matchable
class Any
WithDsl[A, I]

Value members

Concrete methods

def apply[B](use: A => B)(implicit i: I): B
def async[G[_], B](use: A => G[B])(implicit i: I, G: Async[G]): G[B]
def future[B](use: A => Future[B])(implicit i: I, ec: ExecutionContext): Future[B]
def map[B](f: A => B): WithDsl[B, I]
def mapResourse[B](f: A => B)(cleanup: B => Unit): WithDsl[B, I]
def tap[B](f: A => B): WithDsl[A, I]

Abstract fields

val setup: (I, Cleanup) => A