summaryrefslogtreecommitdiff
path: root/taskflow/examples
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2015-06-12 11:27:08 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2015-06-12 11:27:09 -0700
commita26efda03915c272ce7bef57774d548cbd289f6e (patch)
tree6b1a3379f314a0bbe0bd461fd8d2e7eece4b9d98 /taskflow/examples
parent4b28b32778de58ff6b893bba1438c54c2092e5dc (diff)
downloadtaskflow-a26efda03915c272ce7bef57774d548cbd289f6e.tar.gz
Add `simple_linear_listening` example to generated docs
This one is a nice to have in the examples, and should also be updated to not use deprecated properties. Change-Id: I5ee754525caccf0a9ea2a2b00aaa4e0d305e55b7
Diffstat (limited to 'taskflow/examples')
-rw-r--r--taskflow/examples/simple_linear_listening.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/examples/simple_linear_listening.py b/taskflow/examples/simple_linear_listening.py
index deff63c..850421b 100644
--- a/taskflow/examples/simple_linear_listening.py
+++ b/taskflow/examples/simple_linear_listening.py
@@ -92,11 +92,11 @@ engine = taskflow.engines.load(flow, store={
})
# This is where we attach our callback functions to the 2 different
-# notification objects that an engine exposes. The usage of a '*' (kleene star)
+# notification objects that an engine exposes. The usage of a ANY (kleene star)
# here means that we want to be notified on all state changes, if you want to
# restrict to a specific state change, just register that instead.
engine.notifier.register(ANY, flow_watch)
-engine.task_notifier.register(ANY, task_watch)
+engine.atom_notifier.register(ANY, task_watch)
# And now run!
engine.run()