ValueDiscard

cps.ValueDiscard
See theValueDiscard companion object
@Deprecated("use non-wrapped direct values in CpsDirect context and -Wwarn-value-discard compiler option instead")
trait ValueDiscard[T]

When cps.customValueDiscard is on, value can be discarded only for types T for which exists ValueDiscard[T]

see chapter in User Guide

Attributes

Companion
object
Deprecated
true
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AwaitValueDiscard[F, T]

Members list

Value members

Abstract methods

def apply(value: T): Unit

called when value is discarded.

called when value is discarded.

Attributes