MCPcopy
hub / github.com/git-lfs/git-lfs / ChannelWrapper

Interface ChannelWrapper

tools/channels.go:9–12  ·  view source on GitHub ↗

Interface for all types of wrapper around a channel of results and an error channel Implementors will expose a type-specific channel for results Call the Wait() function after processing the results channel to catch any errors that occurred during the async processing

Source from the content-addressed store, hash-verified

7// Call the Wait() function after processing the results channel to catch any errors
8// that occurred during the async processing
9type ChannelWrapper interface {
10 // Call this after processing results channel to check for async errors
11 Wait() error
12}
13
14// Base implementation of channel wrapper to just deal with errors
15type BaseChannelWrapper struct {

Callers 8

WaitMethod · 0.65
runCatFileBatchFunction · 0.65
runCatFileBatchCheckFunction · 0.65
scanStashedFunction · 0.65
parseScannerLogOutputFunction · 0.65
scanIndexFunction · 0.65
pipeExtensionsFunction · 0.65
runScanTreeFunction · 0.65

Implementers 5

BaseChannelWrappertools/channels.go
fastWalkertools/filetools.go
Cmdsubprocess/cmd.go
abortableWaitGrouptq/transfer_queue.go
TransferQueuetq/transfer_queue.go

Calls

no outgoing calls

Tested by

no test coverage detected