greenlet icon indicating copy to clipboard operation
greenlet copied to clipboard

🦎 Move an async function into its own thread.

Results 15 greenlet issues
Sort by recently updated
recently updated
newest added

We are planning to use greenlet to defer expensive computations to web worker in CRA project ( along with Type script ). To test it out I was playing around...

question
has fix

This piece of code passes every static analyzer, ESLint and TS because they don't know that the arrow function is run in a different context: ```js import greenlet from 'greenlet'...

I am trying to use greenlet in an isomorphic application, where the code will be run in browser and server. I am struggling to use it in node, where I...

Creating a new worker for every invocation can be rather slow when dispatching small tasks. How about adding a pool of workers?

question
has fix

I created this as a draft pull request, so that you (the maintainers) would know I'm willing to rewrite a large portion of it due to feedback. Feel free to...

Great library, very useful stuff and absolutely love the size. :) I've only recently started learning about `Web Workers` and took a look at the source code. So apologies in...

If the argument that is passed is not a function, after this change `greenlet` would throw a `TypeError`. `greenlet` would not work properly if the argument is not a function...

Since v1.1.0 introduce a breaking change (CSP) that can break a site, maybe it should have been v2.0.0 with a BRAKING CHANGES section in release note.

I keep getting greenlet.m.js:1 Uncaught (in promise) ReferenceError: __awaiter is not defined. In our project. I've tried changing the complier option values: "importHelpers": true, "noEmitHelpers": true, in our tsconfig file....

Hi guys, maybe I'm wrong and need to give it a better look at service workers but what I'm trying to accomplish is the following: 1- I'd like to pass...

question