Version 15.0.0

This commit is contained in:
2021-05-01 15:52:32 -04:00
parent d2ce7e070b
commit ed924a3d9d
10 changed files with 217 additions and 229 deletions
+16 -7
View File
@@ -1,6 +1,7 @@
# Multi Version: 15.0.0 Fake it, until you make it
# Multi Version: 15.0.0 Fake it till you make it
**Key Changes**
- Emulating system threading on a single thread
- Purpose to allow consistant code that can scale when threading is available. Check out the changelog for more details
Found an issue? Please [submit it](https://github.com/rayaman/multi/issues) and I'll look into it!
@@ -26,20 +27,28 @@ https://discord.gg/U8UspuA</br>
Planned features/TODO
---------------------
- [x] ~~Finish Documentation~~ Finished
- [ ] Create test suite
- [ ] Network Parallelism rework
Usage: [Check out the documentation for more info](https://github.com/rayaman/multi/blob/master/Documentation.md)</br>
-----
```lua
local multi, thread = require("multi").init()
mutli:newThread("Example",function()
package.path="?.lua;?/init.lua;?.lua;?/?/init.lua;"..package.path
local multi, thread = require("multi"):init()
GLOBAL, THREAD = require("multi.integration.threading"):init()
multi:newSystemThread("System Thread",function()
while true do
thread.sleep(1)
print("Hello!")
THREAD.sleep(1)
print("World!")
end
end)
multi:lightloop()
--multi:mainloop()
multi:newThread("Coroutine Based Thread",function()
while true do
print("Hello")
thread.sleep(1)
end
end)
multi:mainloop()
--[[
while true do
multi:uManager()