Does :OnServerEvent being called interrupt a different ongoing function?

For an example, if I have 2 of these things:

script.Parent.OnServerEvent:Connect(function(player)
end)

local function Test()
print("hi")
end

while true do
Test()

If the Test() function is ongoing since the very beginning and then, in the same script, an OnServerEvent gets called, is it going to end/interrupt Test() or not?

Thanks!

The short answer is no, no it will not. When the event fires it will create a whole separate thread to run the event and the Test function will basically be uninterrupted.

You could’ve tested this by adding a print command inside the callback function connected to the “OnServerEvent” event and then having some local script fire the server.