Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
3024e434
Commit
3024e434
authored
Aug 08, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d41f328d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
go/xcommon/xcontext/xcontext.go
go/xcommon/xcontext/xcontext.go
+4
-4
No files found.
go/xcommon/xcontext/xcontext.go
View file @
3024e434
...
...
@@ -123,10 +123,10 @@ func (mc *mergeCtx) Value(key interface{}) interface{} {
// Cancelled reports whether an error is due to a canceled context.
//
// Since both cancellation
- explicit and due to exceeding context deadline -
//
result in the same signal to work being done under context, Canceled treats
//
both context.Canceled and context.DeadlineExceeded as errors indicating
// context cancellation.
// Since both cancellation
ways - explicit and due to exceeding context
//
deadline - result in the same signal to work being done under context,
//
Canceled treats both context.Canceled and context.DeadlineExceeded as errors
//
indicating
context cancellation.
func
Canceled
(
err
error
)
bool
{
switch
err
{
case
context
.
Canceled
,
context
.
DeadlineExceeded
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment