ThreadWorker Class¶
Description¶
Thread worker, to do async tasks in worker thread. All tasks pushed into the worker are ensured to finish before the worker dispose.
Methods¶
Dispose¶
- C#
public void Dispose()
Dispose resources.
Run¶
- C#
public void Run(Action task)
Run task in worker thread.