加好友 发纸条
写留言 加关注
C#异步循环执行任务
///
/// 异步执行任务
public static void RunTask()
{
Task parent = new Task(async () =>
string sql;
DataSet ds;
int count;
while (true)
sql = 'select * from task where next_date <='' + string.Format('{0:yyyy-MM