using System;
using System.Threading.Tasks;
namespace HT.Cloud.Code
{
public class AsyncTaskHelper
{
///
/// 开始异步任务
///
///
public static void StartTask(Action action)
{
try
{
Action newAction = () =>
{ };
newAction += action;
Task task = new Task(newAction);
task.Start();
}
catch (Exception ex)
{
LogHelper.WriteWithTime(ex);
}
}
}
}