client-go
client-go copied to clipboard
Support context in Iterator.Next() operation
Next() should accept ctx context.Context() as arguement for request cancelling.
These features used to be like following in v1:
it, err := tx.Iter(context.TODO(), key.Key(keyPrefix), nil)
it.Next(context.TODO())
func (s *TiKVSnapshot) IterReverse(ctx context.Context, k key.Key) (kv.Iterator, error) {
return nil, ErrNotImplemented
}
Good point. I'll look into what we need to do to fix it later.
I don't need this feature anymore, and there is no support from the community. Let's close.