Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
5f130e41
Commit
5f130e41
authored
Jan 27, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment NodeGetter
parent
ceafd080
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
merkledag.go
merkledag.go
+4
-0
No files found.
merkledag.go
View file @
5f130e41
...
@@ -228,6 +228,10 @@ type nodePromise struct {
...
@@ -228,6 +228,10 @@ type nodePromise struct {
ctx
context
.
Context
ctx
context
.
Context
}
}
// NodeGetter provides a promise like interface for a dag Node
// the first call to Get will block until the Node is received
// from its internal channels, subsequent calls will return the
// cached node.
type
NodeGetter
interface
{
type
NodeGetter
interface
{
Get
()
(
*
Node
,
error
)
Get
()
(
*
Node
,
error
)
}
}
...
...
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