Skip to content
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

Async Node Ever Solved #516

Open
TheShoes opened this issue Jan 26, 2025 · 1 comment
Open

Async Node Ever Solved #516

TheShoes opened this issue Jan 26, 2025 · 1 comment

Comments

@TheShoes
Copy link

I had seen some comments of this in the past but was wondering if it was solved.
Is there a way to make the onExecute method pause the node's processing until an asynchronous operation, like a fetch request, is completed? This would allow the node to pass the fetched information to the next node in the graph once the data is ready.

@atlasan
Copy link
Contributor

atlasan commented Jan 26, 2025

Hi @TheShoes
The graph itself is running continuously (if in play). That means every node (if mode enables it) runs once per frame.
To use asynch operations there is the event system, you can use action slot to call the execution (using onAction callback) and when that is completed trigger an output event slot.
I use onExecute method to update the outputs and refresh the inputs and similar things, while if prefer using actions for anything that is not very light.

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

No branches or pull requests

2 participants