pub fn throw_error<T, E: Clone>(error: E) -> impl Stream<Item = Result<T, E>>
Creates a stream that immediately emits an error.