SyntaxUnsafeGet

izumi.functional.lifecycle.Lifecycle$.SyntaxUnsafeGet
final implicit class SyntaxUnsafeGet[F[_], A](resource: Lifecycle[F, A]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def unsafeGet()(implicit F: QuasiPrimitives[F]): F[A]

Unsafely acquire the resource and throw away the finalizer, this will leak the resource and cause it to never be cleaned up.

Unsafely acquire the resource and throw away the finalizer, this will leak the resource and cause it to never be cleaned up.

This function only makes sense in code examples or at top-level, please use SyntaxUse#use instead!

Attributes

Note:

will also acquire the resource without an uninterruptible section