Runs a function inside a thread. Use this function to run CPU bound processing without freezing the other fibers.
Fini, if provided, will be called with the same parameters in the reactor thread once the thread has finished.
Fini will be called unconditionally, even if the fiber that launched the thread terminates before the thread
has finished.
The Fini function runs within a criticalSection, and must not sleep.
run a function inside a different thread.
Runs a function inside a thread. Use this function to run CPU bound processing without freezing the other fibers.
Fini, if provided, will be called with the same parameters in the reactor thread once the thread has finished. Fini will be called unconditionally, even if the fiber that launched the thread terminates before the thread has finished.
The Fini function runs within a criticalSection, and must not sleep.