undefined cannot be written into channels as ReadableChannel.read uses undefined as a special value. That's why channel interfaces have T extends NotUndefined constraint
undefined
T extends NotUndefined
null is allowed
null
undefinedcannot be written into channels as ReadableChannel.read usesundefinedas a special value. That's why channel interfaces haveT extends NotUndefinedconstraintnullis allowed