| OLD | NEW |
| 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 taskqueue | 5 package taskqueue |
| 6 | 6 |
| 7 // Interface is the full interface to the Task Queue service. | 7 // Interface is the full interface to the Task Queue service. |
| 8 type Interface interface { | 8 type Interface interface { |
| 9 // NewTask simply creates a new Task object with the Path field populate
d. | 9 // NewTask simply creates a new Task object with the Path field populate
d. |
| 10 // The path parameter may be blank, if you want to use the default task
path | 10 // The path parameter may be blank, if you want to use the default task
path |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // | 34 // |
| 35 // Lease would also take care of calling ModifyLease as necessary to ens
ure | 35 // Lease would also take care of calling ModifyLease as necessary to ens
ure |
| 36 // that each call to cb would have 'duration' amount of time to work on
the | 36 // that each call to cb would have 'duration' amount of time to work on
the |
| 37 // task, as well as releasing as many leased tasks as it can on a failur
e. | 37 // task, as well as releasing as many leased tasks as it can on a failur
e. |
| 38 | 38 |
| 39 Purge(queueName string) error | 39 Purge(queueName string) error |
| 40 | 40 |
| 41 Stats(queueNames ...string) ([]Statistics, error) | 41 Stats(queueNames ...string) ([]Statistics, error) |
| 42 | 42 |
| 43 Raw() RawInterface | 43 Raw() RawInterface |
| 44 | |
| 45 Testable() Testable | |
| 46 } | 44 } |
| OLD | NEW |