Small changes to test.lua
This commit is contained in:
parent
e1446c009d
commit
56bce25519
6
test.lua
6
test.lua
@ -58,14 +58,14 @@ function multi:newService(func) -- Priority managed threads
|
|||||||
function c.getUpTime()
|
function c.getUpTime()
|
||||||
return time:Get()
|
return time:Get()
|
||||||
end
|
end
|
||||||
function c.setPriority(pri)
|
function c:setPriority(pri)
|
||||||
|
if type(self)=="number" then pri = self end
|
||||||
p = pri
|
p = pri
|
||||||
end
|
end
|
||||||
return c
|
return c
|
||||||
end
|
end
|
||||||
serv = multi:newService(function(self,data)
|
serv = multi:newService(function(self,data)
|
||||||
thread.sleep(1)
|
print(self:getUpTime())
|
||||||
error("sorry i crashed :'(")
|
|
||||||
end)
|
end)
|
||||||
serv.OnError(function(...)
|
serv.OnError(function(...)
|
||||||
print(...)
|
print(...)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user