Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: common/retry/retry.go

Issue 1159563002: Move retry and lhttp packages from client/internal to common/. (Closed) Base URL: git@github.com:luci/luci-go@master
Patch Set: move-retry-http Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « common/retry/doc.go ('k') | common/retry/retry_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package retry 5 package retry
6 6
7 import ( 7 import (
8 "io" 8 "io"
9 "time" 9 "time"
10 ) 10 )
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 func (e Error) Error() string { 57 func (e Error) Error() string {
58 return e.Err.Error() 58 return e.Err.Error()
59 } 59 }
60 60
61 // Retriable is a task that can be retried. It is important that Do be 61 // Retriable is a task that can be retried. It is important that Do be
62 // idempotent. 62 // idempotent.
63 type Retriable interface { 63 type Retriable interface {
64 io.Closer 64 io.Closer
65 Do() error 65 Do() error
66 } 66 }
OLDNEW
« no previous file with comments | « common/retry/doc.go ('k') | common/retry/retry_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698