-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
parallel()() #37
Comments
maybe? const isPromise(obj: any): obj is Promise => obj && typeof obj.then == 'function' |
A useful use-case is like in Navigation, when you're changing a page through some page event but you need to wait for navigation to complete too before going to the next action, those BotAction's can be ran in parallel |
How would this work with #39 |
What if parallel()() could create other pages from the same window, without using incognito, to do tasks in parallel pages with the same session? |
Basically
Promise.all(actions)
, but.... before this, if running in a Pipe, then return the resolved value of Promise.all(), an array of Pipe values whose indexes correspond with the index in the actions de-spreaded array. Otherwise, if it's not running in a Pipe, then simply await the Promise.all() without returning any values.concept
The text was updated successfully, but these errors were encountered: