aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2024-02-13 15:34:26 -0800
committerJonathan Amsterdam <jba@google.com>2024-02-15 14:35:48 +0000
commitcfe7f21dd55fca8250c34bae8837d241f4a9876e (patch)
treee0c0b79cd133db813bb06b12b1776076c882d5ae /src/cmd/vendor/github.com
parent48d899dcdbed4534ed942f7ec2917cf86b18af22 (diff)
downloadgo-cfe7f21dd55fca8250c34bae8837d241f4a9876e.tar.xz
log/slog: document atomicity guarantees and ordering limitations of handlers
The new wording is slightly more strict than before in that it guarantees each Write only contains exactly one Record, while the previous wording opened up the possibility for multiple Records in a Write call. We also add a comment about the lack of sorting guarantees for concurrently logged Records. That is, the obtained lock only covers the Write call, rather than the combination of the call to time.Now, JSON/text serialization, and also the Write call. Change-Id: Ia65c50579215a35a1f5b2952c6954ddb60e7fe66 Reviewed-on: https://go-review.googlesource.com/c/go/+/563976 Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Bypass: Jonathan Amsterdam <jba@google.com> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/vendor/github.com')
0 files changed, 0 insertions, 0 deletions