Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Copyright (c) 2014, Facebook, Inc. All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. #
"""A PeriodicTask oriented around monitoring a single value.
Simply override `fetch`, and the `onValueChanged()` method will be called with the old and new values. Additionally, the `getValue()` method can be called by other tasks to block until the values are ready. """
self.logger.debug('onValueChanged(%s, %s)', old_value, new_value)
self.logger.debug('fetch') return None
|