PreallocationScope

abstract class PreallocationScope

A scope in which resources can be safely preallocated. Passing a ZManaged to the apply method will create (inside an effect) a managed resource which is already acquired and cannot fail.

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply[R, E, A](managed: => ZManaged[R, E, A]): ZIO[R, E, Managed[Nothing, A]]