KwDispatcher.RegThread

__NOTOC__
This method adds a function to a thread handler which calls one thread each OnUpdate.
The function can have a coroutine.yield breakpoint for long term calculations.
== Parameters ==
=== Arguments ===
:;func
::function - The function is added as a thread to the thread handler.
=== Returns ===
:;nil
::void - A method call without return value.
== Example ==
function counter()
 for variable = 0, 10, 1 do
 --do something
 coroutine.yield()
 end
end
kwDispatcher.RegThread(counter)