(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions)
| 804 | } |
| 805 | |
| 806 | func (op *distinctUntilChangedOperator) next(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions) { |
| 807 | key, err := op.apply(ctx, item.V) |
| 808 | if err != nil { |
| 809 | Error(err).SendContext(ctx, dst) |
| 810 | operatorOptions.stop() |
| 811 | return |
| 812 | } |
| 813 | if op.current != key { |
| 814 | item.SendContext(ctx, dst) |
| 815 | op.current = key |
| 816 | } |
| 817 | } |
| 818 | |
| 819 | func (op *distinctUntilChangedOperator) err(ctx context.Context, item Item, dst chan<- Item, operatorOptions operatorOptions) { |
| 820 | defaultErrorFuncOperator(ctx, item, dst, operatorOptions) |
nothing calls this directly
no test coverage detected