FTaskCompleted 结构
继承成员
命名空间: Fantasy.Async
程序集: Fantasy.Net.dll
语法
[StructLayout(LayoutKind.Auto)]
[AsyncMethodBuilder(typeof(AsyncFTaskCompletedMethodBuilder))]
public struct FTaskCompleted : ICriticalNotifyCompletion, INotifyCompletion
属性
| 编辑本文 查看源代码IsCompleted
声明
[DebuggerHidden]
public bool IsCompleted { get; }
属性值
类型 | 描述 |
---|---|
bool |
方法
| 编辑本文 查看源代码GetAwaiter()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FTaskCompleted GetAwaiter()
返回
类型 | 描述 |
---|---|
FTaskCompleted |
GetResult()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetResult()
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void OnCompleted(Action continuation)
参数
类型 | 名称 | 描述 |
---|---|---|
Action | continuation | The action to invoke when the operation completes. |
异常
类型 | 条件 |
---|---|
ArgumentNullException | The |
UnsafeOnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void UnsafeOnCompleted(Action continuation)
参数
类型 | 名称 | 描述 |
---|---|---|
Action | continuation | The action to invoke when the operation completes. |
异常
类型 | 条件 |
---|---|
ArgumentNullException | The |