greenlet
greenlet copied to clipboard
🦎 Move an async function into its own thread.
In the similar, Node.JS oriented library [microtask](https://github.com/wilk/microjob), one can [pass arguments in to a function](https://github.com/wilk/microjob/blob/master/GUIDE.md#job-data). This would be a nice feature to have in greenlet too.
Hello! Just noticed this problem with greenlet on Firefox (66.0.3); indexedDB is `null` in the greenlet execution context. Reproduction case: ```javascript const callIndexedDB = greenlet(async (limit) => { console.log(indexedDB); //...
Has any benchmark been done to help users know when using Greenlet is beneficial ? Also, knowing when not to use it would be a great gain. Anyway, awesome work,...
vue2 , ``` methods: { async btnTest() { let getName = greenlet( async username => { let url = `https://api.github.com/users/${username}` let res = await fetch(url) let profile = await res.json()...
Currently the worker is always created in classic mode. Since firefox now supports module workers, it would be nice to have the option for it in greenlet. It would open...