pastebin get nByRT66R
VERY simple to use and very short code.
os.loadAPI("daemon") --#starts the daemon change the string to whatever you named the file daemon.add(function[, error]) --#starts a function in the background which will loop until the function reaches its end --#error is a function that will be ran if the coroutine ends, it is passed the error code daemon.rem(table) --#removes a currently running coroutine --#pass it the table returned by daemon.add daemon.getBackground() --#returns a table of all coroutines currently in the background as well as the event they are waiting for to continue running
example:
Edited by HDeffo, 11 August 2018 - 02:02 AM.