Skip to content

Abstractions for synchronous or asynchronous script calls with responses #321

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

Closed
makspll opened this issue Feb 23, 2025 · 1 comment
Closed

Comments

@makspll
Copy link
Owner

makspll commented Feb 23, 2025

I.e. right now it's not very easy to call a script and get something back out of it without digging through the codebase heavilly.

It should be as easy as:

script.call::<Callback>(vec![])

the sync vs async approaches have benefits and drawbacks, doing this async via messages, you could call any script from any system without exclusive world access

@makspll
Copy link
Owner Author

makspll commented Feb 27, 2025

This is now addressed via #327, for asynchronouse calls, we have events, future improvements however, should allow us to poll for events within the context of a system, and get an event response

@makspll makspll closed this as completed Feb 27, 2025
@github-project-automation github-project-automation bot moved this from Planned to Done in BMS Roadmap Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant