nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / AsyncHandle

AsyncHandle

Full name Microsoft.VisualBasic.Parallel.Tasks.AsyncHandle`1 Assembly Microsoft.VisualBasic.Runtime Members 8

Represents the status of an asynchronous operation.(背景线程加载数据)

00 Remarks

这个后台任务模块是为了更加方便的构建出匿名方法的调用过程,因为这个对象的 工作原理是基于匿名方法的BeginInvoke函数来工作的。

Type Parameters
NameDescription
TOut

01 Syntax

Microsoft.VisualBasic.Parallel.Tasks.AsyncHandle`1

02 Methods

NameOverloadsSummary
.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

NameOverloadsSummary
Task 1 封装一个方法,该方法不具有参数,且返回由TOut参数指定的类型的值。
IsCompleted 1 Gets a value that indicates whether the asynchronous operation has completed.
StartTicks 1

04 Members

method .ctor #
#ctor(Func(Of `0))

Creates a new background task from a function handle.

Parameters
NameTypeDescription
TaskFunc(Of `0)

-

method Run #
Run

Start the background task thread.(启动后台背景线程)

method GetValue #
GetValue

Current thread will be blocked at here if the background task not finished. (没有完成的时候会一直在这里阻塞当前的线程)

property Task #
Task

封装一个方法,该方法不具有参数,且返回由TOut参数指定的类型的值。

property IsCompleted #
IsCompleted

Gets a value that indicates whether the asynchronous operation has completed. (获取一个值,该值指示异步操作是否已完成。)

property StartTicks #
StartTicks
method GetTaskExecTimeSpan #
GetTaskExecTimeSpan()
method GetValueAsyn #
GetValueAsyn()