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
d293272d
Commit
d293272d
authored
Jan 18, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
44166efa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
go/internal/xcontext/task/task.go
go/internal/xcontext/task/task.go
+1
-1
go/internal/xcontext/xcontext.go
go/internal/xcontext/xcontext.go
+2
-0
No files found.
go/internal/xcontext/task/task.go
View file @
d293272d
// Copyright (C) 2017-20
18
Nexedi SA and Contributors.
// Copyright (C) 2017-20
21
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Kirill Smelkov <kirr@nexedi.com>
//
//
// This program is free software: you can Use, Study, Modify and Redistribute
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
go/internal/xcontext/xcontext.go
View file @
d293272d
...
@@ -36,6 +36,8 @@ import (
...
@@ -36,6 +36,8 @@ import (
// deadline - result in the same signal to work being done under context,
// deadline - result in the same signal to work being done under context,
// Canceled treats both context.Canceled and context.DeadlineExceeded as errors
// Canceled treats both context.Canceled and context.DeadlineExceeded as errors
// indicating context cancellation.
// indicating context cancellation.
//
// XXX naming -> IsCanceled?
func
Canceled
(
err
error
)
bool
{
func
Canceled
(
err
error
)
bool
{
switch
{
switch
{
case
err
==
nil
:
case
err
==
nil
:
...
...
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