提交 e9596260 作者: Jeromy

comment NodeGetter

上级 6a6ede85
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论