Registry / utility / facebookgo-muster

facebookgo-muster

JSON →
library0.0.0-20150708232844-fd3d7953fd52gogounverified

Provides a framework for writing libraries that internally batch operations based on size or timeout.

go get github.com/facebookgo/muster
INSTALL
IMPORT
SIG · FACEBOOKGO-MUSTER
F
facebookgo-muster
utilitygov0.0.0-20150708232844-fd3d7953fd52
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

muster
✓ github.com/facebookgo/muster

Creates a batching client that dispatches batches when size or timeout is reached.

import "github.com/facebookgo/muster" type myBatch struct{} func (b *myBatch) Add(item interface{}) {} func (b *myBatch) Fire(notifier muster.Notifier) { notifier.Done() } client := &muster.Client{MaxBatchSize: 10, BatchTimeout: time.Second, Batch: &myBatch{}} client.Add("item")
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150708232844-fd3d7953fd52latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
facebookgo-muster — go get facebookgo-muster · libregistry