Resources

kyo.resources.Resources
final class Resources extends Effect[Resource, Resources]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def acquire[T <: Closeable](resource: => T): T > IOs & Resources
def ensure(v: => Unit > IOs): Unit > IOs & Resources
def run[T, S](v: T > Resources & S)(implicit f: Flat[T > Resources & S]): T > IOs & S

Inherited methods

def accepts[M2[_], E2 <: Effect[M2, LazyRef(...)]](other: Effect[M2, E2]): Boolean

Attributes

Inherited from:
Effect
final protected def handle[T, S, S2](v: T > Resources & S)(implicit h: Handler[Resource, Resources, S2], s: Safepoint[Resource, Resources], f: Flat[T > Resources & S]): M[T] > S & S2

Attributes

Inherited from:
Effect
final protected def suspend[T, S](v: Resource[T] > S): T > S & E

Attributes

Inherited from:
Effect
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Effect -> Any
Inherited from:
Effect