Last
func (input *Channel[T]) Last() <-chan T
Last
sends the last value received from the input channel to the output channel.
The last value is sent to the returned channel when all input values have been processed, or the pipeline is canceled.
Example
output := input.Last()