Commit 5f130e41 authored by Jeromy's avatar Jeromy

comment NodeGetter

parent ceafd080
......@@ -228,6 +228,10 @@ type nodePromise struct {
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 {
Get() (*Node, error)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment