[skip ci] Add comment for exported struct Allocator (#11795)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-11-15 19:18:14 +08:00 committed by GitHub
parent 6fd3b376e9
commit f8583bb582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ func (t *Ticker) Chan() <-chan time.Time {
return t.ticker.C
}
// Allocator allocates from a global allocator by its given member funcs
type Allocator struct {
Ctx context.Context
CancelFunc context.CancelFunc