object Resource extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Resource
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- final case class ClassPath(s: String, loader: ClassLoader) extends Product with Serializable
- type FallbackChain = NonEmptyVector[ResourceBox]
- implicit class ResourceOps[R] extends AnyRef
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[B](r: B)(implicit B: Resource[B]): ResourceBox
Construct a new boxed resource from a valid
Resource
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def box[B](r: B)(implicit B: Resource[B]): ResourceBox
- implicit def classPathResource: Resource[ClassPath]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def failIfNone[F[_], A](a: Option[A], msg: String)(implicit F: Sync[F]): F[A]
- implicit def fallbackResource: Resource[FallbackChain]
- implicit def fileResource(implicit ec: ExecutionContext): Watchable[File]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadFile[F[_], R](path: Worth[R], load: F[String])(implicit arg0: Resource[R], F: Sync[F]): F[List[Directive]]
Convenience method for loading a file-like resource.
Convenience method for loading a file-like resource.
load
is aIO
that does the work of turning the resource into aString
that gets parsed by theConfigParser
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val notificationPool: ExecutionContextExecutorService
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
or[R1, R2](r1: R1, r2: R2)(implicit arg0: Resource[R1], arg1: Resource[R2]): FallbackChain
Returns a resource that tries
r1
, and if it fails, falls back tor2
- def pool(name: String): ExecutionContextExecutorService
-
def
resolveName(parent: String, child: String): String
Convenience method for resolving a path-like name relative to another.
Convenience method for resolving a path-like name relative to another.
resolve("foo/bar", "baz")
="foo/baz"
resolve("foo/bar/", "baz")
="foo/bar/baz"
resolve(_, "/bar")
="/bar"
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit def sysPropsResource: Resource[Pattern]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- implicit def uriResource: Resource[URI]
-
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
- @native() @throws( ... )
- def watchEvent[F[_]](path: java.nio.file.Path)(implicit F: Async[F]): F[Stream[F, WatchEvent[_]]]
- val watchPool: ExecutionContextExecutorService