Hyperlinkv0.8.0-beta.28

Channel

Channel.Varianceinterfaceeffect/Channel.ts:203
Variance<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>

Phantom variance marker for the type parameters of Channel.

Details

Output element, output error, output done, and environment types are covariant. Input element, input error, and input done types are contravariant. This is type-level machinery and is not used directly at runtime.

models
Source effect/Channel.ts:20311 lines
export interface Variance<
  out OutElem,
  out OutErr,
  out OutDone,
  in InElem,
  in InErr,
  in InDone,
  out Env
> {
  readonly [TypeId]: VarianceStruct<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>
}
Referenced by 1 symbols