diff --git a/changes.md b/changes.md index 32762ab..f10ba72 100644 --- a/changes.md +++ b/changes.md @@ -121,7 +121,7 @@ Changed: --- - `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 ---|--- diff --git a/test.lua b/test.lua index bd0cf1d..23cab69 100644 --- a/test.lua +++ b/test.lua @@ -14,10 +14,10 @@ end) multi:newThread("test",function() local ret = func() - ret.OnStatus(function(test) - print(test) + ret.OnStatus(function(part,whole) + print(math.ceil((part/whole)*1000)/10) end) - thread.hold(ret.connect()) + thread.hold(ret.OnReturn) print("Function Done!") os.exit() end)