Workspace.ScheduleTask 方法

定义

重载

ScheduleTask(Action, String)

将操作作为后台任务执行,作为任务顺序队列的一部分。

ScheduleTask<T>(Func<T>, String)

将函数作为后台任务执行,作为任务顺序队列的一部分。

ScheduleTask(Action, String)

Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs

将操作作为后台任务执行,作为任务顺序队列的一部分。

protected internal System.Threading.Tasks.Task ScheduleTask (Action action, string taskName = "Workspace.Task");
protected internal System.Threading.Tasks.Task ScheduleTask (Action action, string? taskName = "Workspace.Task");
member this.ScheduleTask : Action * string -> System.Threading.Tasks.Task
Protected Friend Function ScheduleTask (action As Action, Optional taskName As String = "Workspace.Task") As Task

参数

action
Action
taskName
String

返回

适用于

ScheduleTask<T>(Func<T>, String)

Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs

将函数作为后台任务执行,作为任务顺序队列的一部分。

protected internal System.Threading.Tasks.Task<T> ScheduleTask<T> (Func<T> func, string taskName = "Workspace.Task");
protected internal System.Threading.Tasks.Task<T> ScheduleTask<T> (Func<T> func, string? taskName = "Workspace.Task");
member this.ScheduleTask : Func<'T> * string -> System.Threading.Tasks.Task<'T>
Protected Friend Function ScheduleTask(Of T) (func As Func(Of T), Optional taskName As String = "Workspace.Task") As Task(Of T)

类型参数

T

参数

func
Func<T>
taskName
String

返回

Task<T>

适用于