commit | 4494b6cfc9c2a639c23000cd483478598e2d1850 | [log] [tgz] |
---|---|---|
author | Marc-Antoine Ruel <maruel@chromium.org> | Wed Nov 28 21:00:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 28 21:00:41 2018 |
tree | 7b712ad78472975d27c4f48f3a1939e7d5a08b4b | |
parent | b69069bbbdd8b75b0a4b8dce29ab076b6b094f06 [diff] |
[client] Make TaskChannel usable as a generator For a class to be usable as a python generator, it must have: - __iter__() - next() I added __iter__() and renamed pull() to next(). This will be useful as a multithreaded python generator. Splitting as a separate CL to make it easier to review. Includes relevant unit test. Bug: 825418 Change-Id: Ic2e8a288a991dc214dea59e9533010679d0fde21 Reviewed-on: https://chromium-review.googlesource.com/c/1349377 Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org> Reviewed-by: Quinten Yearsley <qyearsley@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py Cr-Mirrored-Commit: df4bf3d52e3911f5415bf9613735b4811ef94fff
This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.
To contribute changes you need to clone the main python repo and then use git cl upload. The client-py repo mirror (which appears in Chromium's third_party directory) cannot be contributed to directly.
This project is licensed under Apache v2.0 license. See LICENSE for details.