typed

fun <T> typed(channel: Channel, codec: Codec<T>): TypedChannel<T>