Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Promises in iopipe.define() #82

Open
ewindisch opened this issue Jul 4, 2016 · 2 comments
Open

Support Promises in iopipe.define() #82

ewindisch opened this issue Jul 4, 2016 · 2 comments

Comments

@ewindisch
Copy link
Contributor

ewindisch commented Jul 4, 2016

Users would like to return a promise from functions passed to iopipe.define

Dustin Getz @dustingetz Jul 02 14:16
hey guys cool project
I thought aws lambda can't do async or state, i thought you just had to compute something and return a value, am i confused?
let inc = (e,c)=>resovledPromise(e.count+1)
iopipe.define(inc, inc, inc)
is this possible to express?
with async types
i now see it can here: https://github.com/iopipe/dockaless-examples/blob/master/functions/urls-ffmpeg-resize/index.js
@ewindisch
Copy link
Contributor Author

@ewindisch
Copy link
Contributor Author

/cc @dustingetz (requested this via gitter.im)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant