unsafe

zio.Runtime.unsafe
object unsafe

Attributes

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

Members list

Value members

Concrete methods

def fromLayer[R](layer: Layer[Any, R])(implicit trace: Trace, unsafe: Unsafe): Scoped[R]

Unsafely creates a Runtime from a ZLayer whose resources will be allocated immediately, and not released until the Runtime is shut down or the end of the application.

Unsafely creates a Runtime from a ZLayer whose resources will be allocated immediately, and not released until the Runtime is shut down or the end of the application.

This method is useful for small applications and integrating ZIO with legacy code, but other applications should investigate using ZIO.provide directly in their application entry points.

Attributes