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