OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package gae | 5 package gae |
6 | 6 |
7 type stopErr struct{} | 7 type stopErr struct{} |
8 | 8 |
9 func (stopErr) Error() string { return "stop iteration" } | 9 func (stopErr) Error() string { return "stop iteration" } |
10 | 10 |
11 // Stop is understood by various services to stop iterative processes. Examples | 11 // Stop is understood by various services to stop iterative processes. Examples |
12 // include datastore.Interface.Run's callback. | 12 // include datastore.Interface.Run's callback. |
13 var Stop error = stopErr{} | 13 var Stop error = stopErr{} |
OLD | NEW |