mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Removed some tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Multi Version: 16.0.0 Upgrade Complete
|
||||
# Multi Version: 15.2.0 Upgrade Complete
|
||||
**Key Changes**
|
||||
- All objects now use connections internally
|
||||
- Updated getTasksDetails() to handle the new method of managing threads and processors
|
||||
@@ -9,16 +9,13 @@ My multitasking library for lua. It is a pure lua binding, with exceptions of th
|
||||
|
||||
INSTALLING
|
||||
----------
|
||||
Links to dependencies:
|
||||
Link to dependencies:
|
||||
[lanes](https://github.com/LuaLanes/lanes)
|
||||
|
||||
To install copy the multi folder into your environment and you are good to go</br>
|
||||
If you want to use the system threads, then you'll need to install lanes!
|
||||
**or** use luarocks `luarocks install multi`
|
||||
|
||||
Going forward I will include a Release zip for love2d.
|
||||
**The Network Manager rework is currently being worked on and the old version is not included in this version.**
|
||||
|
||||
Discord
|
||||
-------
|
||||
Have a question? Or need realtime assistance? Feel free to join the discord!</br>
|
||||
@@ -26,7 +23,6 @@ https://discord.gg/U8UspuA</br>
|
||||
|
||||
Planned features/TODO
|
||||
---------------------
|
||||
- [x] ~~Finish Documentation~~ Finished
|
||||
- [ ] Create test suite
|
||||
- [ ] Network Parallelism rework
|
||||
|
||||
@@ -34,21 +30,27 @@ Usage: [Check out the documentation for more info](https://github.com/rayaman/mu
|
||||
-----
|
||||
|
||||
```lua
|
||||
package.path="?.lua;?/init.lua;?.lua;?/?/init.lua;"..package.path
|
||||
local multi, thread = require("multi"):init()
|
||||
GLOBAL, THREAD = require("multi.integration.threading"):init()
|
||||
GLOBAL, THREAD = require("multi.integration.lanesManager"):init()
|
||||
multi:newSystemThread("System Thread",function()
|
||||
while true do
|
||||
THREAD.sleep(1)
|
||||
print("World!")
|
||||
THREAD.sleep(.1)
|
||||
io.write(" World")
|
||||
THREAD.kill()
|
||||
end
|
||||
end)
|
||||
multi:newThread("Coroutine Based Thread",function()
|
||||
while true do
|
||||
print("Hello")
|
||||
thread.sleep(1)
|
||||
io.write("Hello")
|
||||
thread.sleep(.1)
|
||||
thread.kill()
|
||||
end
|
||||
end)
|
||||
multi:newTLoop(function(loop)
|
||||
print("!")
|
||||
loop:Destroy()
|
||||
os.exit()
|
||||
end,.3)
|
||||
multi:mainloop()
|
||||
--[[
|
||||
while true do
|
||||
|
||||
Reference in New Issue
Block a user