greenlet icon indicating copy to clipboard operation
greenlet copied to clipboard

Pass data in to function

Open rektide opened this issue 6 years ago • 1 comments

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.

rektide avatar Apr 06 '19 17:04 rektide

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 avatar Oct 01 '19 19:10 developit