Update README.md
This commit is contained in:
parent
af88b2a054
commit
bcb7e97184
33
README.md
33
README.md
@ -1,15 +1,15 @@
|
||||
# multi Version: 14.0.0 Bug fixes and cool new features added (See changes.md)
|
||||
|
||||
Found an issue? Please submit it and ill look into it!
|
||||
Found an issue? Please [submit it](https://github.com/rayaman/multi/issues) and ill look into it!
|
||||
|
||||
My multitasking library for lua. It is a pure lua binding, if you ignore the integrations and the love2d compat. If you find any bugs or have any issues, please let me know . **If you don't see a table of contents try using the ReadMe.html file. It is easier to navigate than readme**</br>
|
||||
My multitasking library for lua. It is a pure lua binding, if you ignore the integrations and the love2d compat. If you find any bugs or have any issues, please let me know.
|
||||
|
||||
INSTALLING
|
||||
----------
|
||||
Note: The latest version of Lua lanes is required if you want to make use of system threads on lua 5.1+. I will update the dependencies for Lua rocks since this library should work fine on lua 5.1+ You also need the lua-net library and the bin library. all installed automatically using luarocks. however you can do this manually if lanes and luasocket are installed. Links:
|
||||
https://github.com/rayaman/bin
|
||||
https://github.com/rayaman/multi
|
||||
https://github.com/rayaman/net
|
||||
Links to dependicies:
|
||||
[bin](https://github.com/rayaman/bin)
|
||||
[net](https://github.com/rayaman/net)
|
||||
[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!
|
||||
@ -26,28 +26,27 @@ luarocks install lnet
|
||||
|
||||
Discord
|
||||
-------
|
||||
For real-time assistance with my libraries! A place where you can ask questions and get help with any of my libraries. Also, you can request features and stuff there as well.</br>
|
||||
Have a question that you need asking? Or need realtime assistance? Feel free to join the discord!</br>
|
||||
https://discord.gg/U8UspuA</br>
|
||||
|
||||
Planned features/TODO
|
||||
---------------------
|
||||
- [ ] Finish Documentation
|
||||
- [ ] Test for unknown bugs -- This is always going on
|
||||
- [x] ~~Network Parallelism~~ This was fun, I have some more plans for this as well
|
||||
- [ ] Network Parallelism rework
|
||||
|
||||
Usage:</br>
|
||||
-----
|
||||
```lua
|
||||
-- Basic usage Alarms: Have been moved to the core of the library require("multi") would work as well
|
||||
local multi = require("multi") -- gets the entire library
|
||||
alarm=multi:newAlarm(3) -- in seconds can go to .001 uses the built in os.clock()
|
||||
alarm:OnRing(function(a)
|
||||
print("3 Seconds have passed!")
|
||||
a:Reset(n) -- if n were nil it will reset back to 3, or it would reset to n seconds
|
||||
local multi, thread = require("multi").init()
|
||||
mutli:newThread("Example",function()
|
||||
while true do
|
||||
thread.sleep(1)
|
||||
print("Hello!")
|
||||
end
|
||||
end)
|
||||
multi:mainloop() -- the main loop of the program, multi:umanager() exists as well to allow integration in other loops Ex: love2d love.update function. More on this binding in the wiki!
|
||||
multi:mainloop()
|
||||
```
|
||||
|
||||
Known Bugs/Issues
|
||||
-----------------
|
||||
Currently no bugs that I know of :D
|
||||
Check the Issue tab for issues
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user