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

Pass data in to function #39

Open
rektide opened this issue Apr 6, 2019 · 1 comment
Open

Pass data in to function #39

rektide opened this issue Apr 6, 2019 · 1 comment
Labels
question Further information is requested

Comments

@rektide
Copy link

rektide commented Apr 6, 2019

In the similar, Node.JS oriented library microtask, one can pass arguments in to a function. This would be a nice feature to have in greenlet too.

@developit
Copy link
Owner

Hiya! I'm not sure I follow - would this be different from Greenlet's current support for calling arguments?

const foo = greenlet((a, b, c) => [a, b, c]);
await foo(1, 2, 3)  // [1,2,3]
@developit developit added the question Further information is requested label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants