mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Small changes to test.lua
This commit is contained in:
@@ -58,14 +58,14 @@ function multi:newService(func) -- Priority managed threads
|
||||
function c.getUpTime()
|
||||
return time:Get()
|
||||
end
|
||||
function c.setPriority(pri)
|
||||
function c:setPriority(pri)
|
||||
if type(self)=="number" then pri = self end
|
||||
p = pri
|
||||
end
|
||||
return c
|
||||
end
|
||||
serv = multi:newService(function(self,data)
|
||||
thread.sleep(1)
|
||||
error("sorry i crashed :'(")
|
||||
print(self:getUpTime())
|
||||
end)
|
||||
serv.OnError(function(...)
|
||||
print(...)
|
||||
|
||||
Reference in New Issue
Block a user