Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit e9e93c6

Browse files
author
Ramon Nogueira
authored
Document that ExportView is not called concurrently (#864)
This allows Exporter implementations to avoid unnecessary internal synchronization.
1 parent 1789eaf commit e9e93c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stats/view/export.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ var (
2727
// Exporter takes a significant amount of time to
2828
// process a Data, that work should be done on another goroutine.
2929
//
30+
// It is safe to assume that ExportView will not be called concurrently from
31+
// multiple goroutines.
32+
//
3033
// The Data should not be modified.
3134
type Exporter interface {
3235
ExportView(viewData *Data)

0 commit comments

Comments
 (0)