MCPcopy
hub / github.com/minio/minio-go / contextCanceled

Function contextCanceled

api-list.go:855–862  ·  view source on GitHub ↗

contextCanceled returns whether a context is canceled.

(ctx context.Context)

Source from the content-addressed store, hash-verified

853
854// contextCanceled returns whether a context is canceled.
855func contextCanceled(ctx context.Context) bool {
856 select {
857 case <-ctx.Done():
858 return true
859 default:
860 return false
861 }
862}
863
864// listIncompleteUploads lists all incomplete uploads.
865func (c *Client) listIncompleteUploads(ctx context.Context, bucketName, objectPrefix string, recursive bool) <-chan ObjectMultipartInfo {

Callers 5

listObjectsV2Method · 0.85
listObjectsMethod · 0.85
listObjectVersionsMethod · 0.85
ListObjectsMethod · 0.85
listIncompleteUploadsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected