FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

generator and async generator support by johnsonjo4531 · Pull Request #39 · developit/workerize · GitHub

generator and async generator support - #39

Open
johnsonjo4531 wants to merge 2 commits into
developit:masterfrom
johnsonjo4531:master
Open

generator and async generator support#39
johnsonjo4531 wants to merge 2 commits into
developit:masterfrom
johnsonjo4531:master

Conversation

Copy link
Copy Markdown

fixes #38
First thing to note about this is that I broke the microbundle build.
I'll attempt to fix the generator function to not use things microbundle
doesn't expect, but I'm not sure how far I'll get
with that. Which that's also something tying up this pull request:
developit/greenlet#50

One other thing to note about this is that I decided on
returning a promise of the asyncIterator from the generator function.
This is due to the fact that the function from the user only ever gets
evaluated as an executable function on the worker side.

fixes developit#38
First thing to note about this is that I broke the microbundle build.
I'll attempt to fix the generator function to not use things microbundle
doesn't expect, but I'm not sure how far I'll get
with that. Which that's also something tying up this pull request:
developit/greenlet#50

One other thing to note about this is that I decided on
returning a promise of the asyncIterator from the generator function.
This is due to the fact that the function from the user only ever gets
evaluated as an executable function on the worker side.

Copy link
Copy Markdown

Status?

Copy link
Copy Markdown
Author

@xepher0coded The build and tests should be passing I think it is now ready for review.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for async generator functions

2 participants


Back | FazBrowse Home | New Git URL