mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Async-related script cleanups
This commit is contained in:
parent
0f8a6d78a7
commit
6a1424f2b1
15 changed files with 135 additions and 156 deletions
|
@ -92,9 +92,9 @@ void MainMenuScripting::step()
|
|||
}
|
||||
|
||||
/******************************************************************************/
|
||||
unsigned int MainMenuScripting::queueAsync(const std::string &serialized_func,
|
||||
const std::string &serialized_param)
|
||||
u32 MainMenuScripting::queueAsync(std::string &&serialized_func,
|
||||
std::string &&serialized_param)
|
||||
{
|
||||
return asyncEngine.queueAsyncJob(serialized_func, serialized_param);
|
||||
return asyncEngine.queueAsyncJob(std::move(serialized_func), std::move(serialized_param));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue