You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,9 @@ In this example, The return of `hello` event will trigger `world` event.
69
69
70
70
To make an event function, there are few elements:
71
71
72
-
* Input Signature: must be `(event: EventInput, global_ctx)`. `EventInput` is the returns of the listening groups. `global_ctx` is set by you when invoking events, it can be anything and default to `None`
72
+
* Input Signature: must be `(event: EventInput, global_ctx)`. `EventInput` is the returns of the listening groups. `global_ctx` is set by you when invoking events, it can be anything and default to `None`.
73
+
74
+
This [example](./examples/3_use_event_output.py) shows how to get returns from `EventInput` .
73
75
* Make sure you decorate the function with `@default_drive.make_event` or `@default_drive.listen_group([EVENT,...])`
74
76
75
77
Then, run your workflow from any event:
@@ -78,7 +80,7 @@ Then, run your workflow from any event:
0 commit comments