namesys: doc on emitResult
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Oct 18, 2018 at 15:02 UTC
6207222211db8bfd8f83e05508acce17397d6808
1 file changed
+2
namesys/base.go
+2
@@ -99,6 +99,8 @@ func resolveAsync(ctx context.Context, r resolver, name string, options opts.Res
99
break
100
}
101
102
+ // We don't bother returning here in case of context timeout as there is
103
+ // no good reason to do that, and we may still be able to emit a result
104
emitResult(ctx, outCh, res)
105
case <-ctx.Done():
106
return