FlatMappedResource

fm.common.FlatMappedResource
final class FlatMappedResource[A, B](resource: Resource[A], mapping: A => Resource[B]) extends Resource[B]

For Resource.flatMap

Attributes

Graph
Supertypes
trait Resource[B]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def isMultiUse: Boolean

Can this resource be used multiple times?

Can this resource be used multiple times?

Attributes

def isUsable: Boolean

Is this resource usable? i.e. will the use() method work?

Is this resource usable? i.e. will the use() method work?

Attributes

def use[T](f: B => T): T

Inherited methods

final def flatMap[B](f: B => Resource[B]): Resource[B]

Attributes

Inherited from:
Resource
final def foreach[U](f: B => U): Unit

Attributes

Inherited from:
Resource
final def map[B](f: B => B): Resource[B]

Attributes

Inherited from:
Resource