[DiscordArchive] To which event?
[DiscordArchive] To which event?
Archived author: Foe • Posted: 2023-05-09T12:02:05.820000+00:00
Original source
To which event?
Archived author: Roboto • Posted: 2023-05-09T12:15:32.129000+00:00
Original source
it uses a `QueryCallbackProcessor`, the callbacks are processed on world update
Archived author: Foe • Posted: 2023-05-09T13:42:06.502000+00:00
Original source
Yeah I get that, but you're essentially freezing the function execution until you receive the callback from the method
Archived author: Roboto • Posted: 2023-05-09T13:42:27.867000+00:00
Original source
Nope
Archived author: Foe • Posted: 2023-05-09T13:42:46.071000+00:00
Original source
As long as you expect a return value in the function call, you'll have to wait for the return from the method to process the return variable, no?
Archived author: Roboto • Posted: 2023-05-09T13:43:13.719000+00:00
Original source
you pass a callback function to it
Archived author: Foe • Posted: 2023-05-09T13:44:51.678000+00:00
Original source
Aha, yeah that makes more sense then, I'd personally set up a new event type where you can process every sql return rather than passing function objects around, but that's whatever
Archived author: Roboto • Posted: 2023-05-09T13:46:36.359000+00:00
Original source
meh, then every one of your results come through the exact same event and you don't know which is which
Archived author: Roboto • Posted: 2023-05-09T13:47:07.826000+00:00
Original source
it's fine if you use only one query in your script but otherwise it will quickly get tedious
Archived author: Foe • Posted: 2023-05-09T13:49:29.976000+00:00
Original source
Sure, I'd handle it that way regardless, much rather have one sql return function to deal with all data return than a large amount of functions