Skip to content

Pass data in to function #39

Description

@rektide

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.

Activity

  1. developit commented on Oct 1, 2019

    @developit
    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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions