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
fbf0a7d8
Commit
fbf0a7d8
authored
May 25, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7602542c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
go/xcommon/xcontext/xcontext.go
go/xcommon/xcontext/xcontext.go
+2
-2
No files found.
go/xcommon/xcontext/xcontext.go
View file @
fbf0a7d8
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
//
//
// Merge and MergeChan could be handy in situations where spawned job needs to
// Merge and MergeChan could be handy in situations where spawned job needs to
// be canceled whenever any of 2 contexts becomes done. This frequently arises
// be canceled whenever any of 2 contexts becomes done. This frequently arises
// with service methods
which
accept context as argument, and the service
// with service methods
that
accept context as argument, and the service
// itself, on another control line, could be instructed to become
// itself, on another control line, could be instructed to become
// non-operational. For example:
// non-operational. For example:
//
//
...
@@ -72,7 +72,7 @@ type mergeCtx struct {
...
@@ -72,7 +72,7 @@ type mergeCtx struct {
//
//
// - is done when ctx1 or ctx2 is done, or cancel called, whichever happens first,
// - is done when ctx1 or ctx2 is done, or cancel called, whichever happens first,
// - has deadline = min(ctx1.Deadline, ctx2.Deadline),
// - has deadline = min(ctx1.Deadline, ctx2.Deadline),
// - has associated values merged from ctx1 and ctx2.
// - has associated values merged from ctx1 and ctx2
, with ctx1 taking precedence
.
//
//
// Canceling this context releases resources associated with it, so code should
// Canceling this context releases resources associated with it, so code should
// call cancel as soon as the operations running in this Context complete.
// call cancel as soon as the operations running in this Context complete.
...
...
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