Scope

scala.scalanative.util.Scope$
See theScope companion trait
object Scope

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Scope.type

Members list

Value members

Concrete methods

def apply[T](f: Scope => T): T

Opens an implicit scope, evaluates the function and cleans up all the resources as soon as execution leaves the demercated block.

Opens an implicit scope, evaluates the function and cleans up all the resources as soon as execution leaves the demercated block.

Attributes

def unsafe(): Scope

Unsafe manually managed scope.

Unsafe manually managed scope.

Attributes

Concrete fields

val forever: Scope

Scope that never closes. Resources allocated in this scope are going to be acquired as long as application is running.

Scope that never closes. Resources allocated in this scope are going to be acquired as long as application is running.

Attributes