Represents the status of an asynchronous operation.(背景线程加载数据)
AsyncHandle
00 Remarks
这个后台任务模块是为了更加方便的构建出匿名方法的调用过程,因为这个对象的 工作原理是基于匿名方法的BeginInvoke函数来工作的。
Type Parameters
| Name | Description |
|---|---|
TOut |
01 Syntax
Microsoft.VisualBasic.Parallel.Tasks.AsyncHandle`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Creates a new background task from a function handle. |
| Run | 1 | Start the background task thread.(启动后台背景线程) |
| GetValue | 1 | Current thread will be blocked at here if the background task not finished. |
| GetTaskExecTimeSpan | 1 | |
| GetValueAsyn | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Task | 1 | 封装一个方法,该方法不具有参数,且返回由TOut参数指定的类型的值。 |
| IsCompleted | 1 | Gets a value that indicates whether the asynchronous operation has completed. |
| StartTicks | 1 |
04 Members
#ctor(
Func(Of `0))Creates a new background task from a function handle.
Parameters
| Name | Type | Description |
|---|---|---|
Task | Func(Of `0) | - |
Run
Start the background task thread.(启动后台背景线程)
GetValue
Current thread will be blocked at here if the background task not finished. (没有完成的时候会一直在这里阻塞当前的线程)
Task
封装一个方法,该方法不具有参数,且返回由TOut参数指定的类型的值。
IsCompleted
Gets a value that indicates whether the asynchronous operation has completed. (获取一个值,该值指示异步操作是否已完成。)
StartTicks
GetTaskExecTimeSpan()
GetValueAsyn()