object Scope
- Alphabetic
- By Inheritance
- Scope
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[A](op: (Scope) ⇒ A)(implicit arg0: Movable[A], parent: Scope): A
Create new Scope bound to an anonymous function.
Create new Scope bound to an anonymous function.
Will release when the function returns. Return values of the function are moved to the parent scope. Return values must conform to the lamp.Movable type class.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bracket[A](parent: Scope)(use: (Scope) ⇒ IO[A])(implicit arg0: Movable[A]): IO[A]
Create new Scope bound to a cats-effect IO.
Create new Scope bound to a cats-effect IO.
Will release when the IO finishes. Return values of the IO are moved to the parent scope.
-
def
bracket[A](use: (Scope) ⇒ IO[A])(implicit arg0: Movable[A], parent: Scope): IO[A]
Create new Scope bound to a cats-effect IO.
Create new Scope bound to a cats-effect IO.
Will release when the IO finishes. Return values of the IO are moved to the parent scope.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
free: Scope
Create new free standing Scope, not bound to any lexical scope.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inResource: Resource[IO, Scope]
Create new Scope bound to a cats-effect Resource.
Create new Scope bound to a cats-effect Resource.
Will release when the cats-effect Resource cleans up.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leak[A](op: (Scope) ⇒ A): A
Create new Scope bound to an anonymous function.
Create new Scope bound to an anonymous function. May leak resources.
Will release when the function returns. Return values are *not* moved to any parent scope.
This method exists to return GC-managed values from a Scope block.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
root[A](op: (Scope) ⇒ Unit): Unit
Create new Scope bound to an anonymous function.
Create new Scope bound to an anonymous function. Returns nothing.
Will release when the function returns.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()