We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bda31b commit 43a12a9Copy full SHA for 43a12a9
internal/xcontext/cancel_with_error.go
@@ -3,14 +3,13 @@ package xcontext
3
import (
4
"context"
5
"errors"
6
- "fmt"
7
"sync"
8
"time"
9
10
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors"
11
)
12
13
-var errCancelWithNilError = fmt.Errorf("nil error: %w", context.Canceled)
+var errCancelWithNilError = cancelError{err: errors.New("cancel context with nil error")}
14
15
// CancelErrFunc use for cancel with wrap with specific error
16
// if err == nil CancelErrFunc will panic for prevent
0 commit comments