implicit final class NestedSyntax[F[_], A] extends AnyVal
- Source
- Resource.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NestedSyntax
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def flattenK(implicit F: MonadCancel[F, Throwable]): Resource[F, A]
Flattens the outer Resource scope with the inner, mirroring the semantics of Resource.flatMap.
Flattens the outer Resource scope with the inner, mirroring the semantics of Resource.flatMap.
This function is useful in cases where some generic combinator (such as GenSpawn.background) explicitly returns a value within a Resource effect, and that generic combinator is itself used within an outer Resource. In this case, it is often desirable to flatten the inner and outer Resource together. flattenK implements this flattening operation with the same semantics as Resource.flatMap.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val self: Resource[[β$17$]Resource[F, β$17$], A]
- def toString(): String
- Definition Classes
- Any