mirror of
https://github.com/rayaman/multi.git
synced 2026-09-04 23:17:35 -04:00
Version 15.0.0
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user