Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.47 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.47 KB

Main Thread Task

Task/UniTask-based Main Thread dispatcher classes, no GameObjects involved.

Features

  • Simple to use: call MainThreadTask.Run and that's it, your action will run on the Main Thread!
  • async method MainThreadTask.RunAsync, so you can await for execution to complete
  • TaskScheduler and TaskFactory used for running Tasks on the Main Thread are available
  • UniTask-based implementation in MainThreadUniTask class, conditionally compiled if UniTask is detected in project
  • System.Action extension methods InvokeOnMainThread and InvokeOnMainThreadAsync
  • No GameObjects involved
  • Simple implementations with around 50 lines of code each

How to install

Either:

https://github.com/gilzoide/unity-main-thread-task.git#1.0.0