spaces to tabs
This commit is contained in:
parent
588923e1b7
commit
f7452db3ec
24
README.md
24
README.md
@ -34,28 +34,28 @@ Usage: [Check out the documentation for more info](https://github.com/rayaman/mu
|
|||||||
local multi, thread = require("multi"):init()
|
local multi, thread = require("multi"):init()
|
||||||
GLOBAL, THREAD = require("multi.integration.lanesManager"):init()
|
GLOBAL, THREAD = require("multi.integration.lanesManager"):init()
|
||||||
multi:newSystemThread("System Thread",function()
|
multi:newSystemThread("System Thread",function()
|
||||||
while true do
|
while true do
|
||||||
THREAD.sleep(.1)
|
THREAD.sleep(.1)
|
||||||
io.write(" World")
|
io.write(" World")
|
||||||
THREAD.kill()
|
THREAD.kill()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
multi:newThread("Coroutine Based Thread",function()
|
multi:newThread("Coroutine Based Thread",function()
|
||||||
while true do
|
while true do
|
||||||
io.write("Hello")
|
io.write("Hello")
|
||||||
thread.sleep(.1)
|
thread.sleep(.1)
|
||||||
thread.kill()
|
thread.kill()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
multi:newTLoop(function(loop)
|
multi:newTLoop(function(loop)
|
||||||
print("!")
|
print("!")
|
||||||
loop:Destroy()
|
loop:Destroy()
|
||||||
os.exit()
|
os.exit()
|
||||||
end,.3)
|
end,.3)
|
||||||
multi:mainloop()
|
multi:mainloop()
|
||||||
--[[
|
--[[
|
||||||
while true do
|
while true do
|
||||||
multi:uManager()
|
multi:uManager()
|
||||||
end
|
end
|
||||||
]]
|
]]
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user