V15.1.0 #26
@ -121,7 +121,7 @@ Changed:
|
|||||||
---
|
---
|
||||||
|
|
||||||
- `f = thread:newFunction(func,holdme)`
|
- `f = thread:newFunction(func,holdme)`
|
||||||
- Nothing changed that will affect how the object functions defaulty. The returned function is now a table that is callable and 2 new methods have been added:
|
- Nothing changed that will affect how the object functions by default. The returned function is now a table that is callable and 2 new methods have been added:
|
||||||
|
|
||||||
Method | Description
|
Method | Description
|
||||||
---|---
|
---|---
|
||||||
|
|||||||
6
test.lua
6
test.lua
@ -14,10 +14,10 @@ end)
|
|||||||
|
|
||||||
multi:newThread("test",function()
|
multi:newThread("test",function()
|
||||||
local ret = func()
|
local ret = func()
|
||||||
ret.OnStatus(function(test)
|
ret.OnStatus(function(part,whole)
|
||||||
print(test)
|
print(math.ceil((part/whole)*1000)/10)
|
||||||
end)
|
end)
|
||||||
thread.hold(ret.connect())
|
thread.hold(ret.OnReturn)
|
||||||
print("Function Done!")
|
print("Function Done!")
|
||||||
os.exit()
|
os.exit()
|
||||||
end)
|
end)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user