提交 62072222 作者: Łukasz Magiera

namesys: doc on emitResult

License: MIT
Signed-off-by: 's avatarŁukasz Magiera <magik6k@gmail.com>
上级 16e6343a
......@@ -99,6 +99,8 @@ func resolveAsync(ctx context.Context, r resolver, name string, options opts.Res
break
}
// We don't bother returning here in case of context timeout as there is
// no good reason to do that, and we may still be able to emit a result
emitResult(ctx, outCh, res)
case <-ctx.Done():
return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论