Events::delayTermination
(Redirected from Events::delayShutdown)
Server-Side Function
JavaScript |
---|
This function delays server's shutdown till you finish all your async tasks.
Setter
- Boolean
Example
Server-Side
mp.events.add("serverShutdown", async () => { mp.events.delayTermination = true; await yourAsyncFunction(); mp.events.delayTermination = false; });
See Also
- Functions
- Properties