Esempio n. 1
0
 /// <summary>
 /// 在Unity线程内执行;
 /// </summary>
 public static Task Run(Action action)
 {
     return(UnityFixedUpdateTaskFactory.StartNew(action));
 }
Esempio n. 2
0
 /// <summary>
 /// 在Unity线程内执行;
 /// </summary>
 public static Task <T> Run <T>(Func <T> function)
 {
     return(UnityFixedUpdateTaskFactory.StartNew(function));
 }
Esempio n. 3
0
 /// <summary>
 /// 在Unity线程内执行;
 /// </summary>
 public static Task <T> Run <T>(Func <T> function, CancellationToken cancellationToken)
 {
     return(UnityFixedUpdateTaskFactory.StartNew(function, cancellationToken));
 }
Esempio n. 4
0
 /// <summary>
 /// 在Unity线程内执行;
 /// </summary>
 public static Task Run(Action action, CancellationToken cancellationToken)
 {
     return(UnityFixedUpdateTaskFactory.StartNew(action, cancellationToken));
 }