We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
console.log
greenlet
I'm not sure if this is a limitation of this library or of Workers in general, but I was expecting the following code to log each index:
import { greenlet } from "tinylet"; const func = greenlet(() => { let count = 0; for (let i = 0; i < 1000; i++) { count = i + 1; console.log(`Item: ${i}`); } return count; }); const count = await func(); console.log({ count });
However, the actual output is:
Item: 0 { count: 1000 }
Why does it only log inside of the worker once?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm not sure if this is a limitation of this library or of Workers in general, but I was expecting the following code to log each index:
However, the actual output is:
Why does it only log inside of the worker once?
The text was updated successfully, but these errors were encountered: