ydb-go-sdk icon indicating copy to clipboard operation
ydb-go-sdk copied to clipboard

feat: Add way for wait first successfully connection for topic reader/writer.

Open rekby opened this issue 1 year ago • 0 comments

Feature Request

Describe the Feature Request Create of reader/writer is lazy. It mean user may receive initialization error (bad auth, topic not found, etc) far from create reader/writer.

Describe Preferred Solution

Add method WaitInit(ctx) for wait first succesfull connection after create reader/writer or unrepeatable error. Method must return struct with initial info, for example last seqno

Describe Alternatives

Use tracing

Related Code

rekby avatar Mar 23 '23 14:03 rekby