You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/22 19:32:49 UTC

[GitHub] csantanapr commented on a change in pull request #3202: Support action continuations in the controller

csantanapr commented on a change in pull request #3202: Support action continuations in the controller
URL: https://github.com/apache/incubator-openwhisk/pull/3202#discussion_r163044196
 
 

 ##########
 File path: docs/compositions.md
 ##########
 @@ -0,0 +1,144 @@
+# Action compositions
+
+Action compositions make it possible to dynamically build and invoke a series of actions. Action compositions are similar to sequences. However, whereas the components of a sequence must be specified before invoking the sequence, components of a composition can be decided as the composition is running.
+
+## Example
+
+Suppose we define an _increment_ action:
+
+```
+$ cat > increment.js
+function main({ value }) { return { value: value + 1 } }
+^D
 
 Review comment:
   What are this ^D about ? in the file

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services