contextCanceled returns whether a context is canceled.
(ctx context.Context)
| 853 | |
| 854 | // contextCanceled returns whether a context is canceled. |
| 855 | func 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. |
| 865 | func (c *Client) listIncompleteUploads(ctx context.Context, bucketName, objectPrefix string, recursive bool) <-chan ObjectMultipartInfo { |
no outgoing calls
no test coverage detected