FTask<T> 类
程序集: Fantasy.Net.dll
语法
[AsyncMethodBuilder(typeof(AsyncFTaskMethodBuilder<>))]
public sealed class FTask<T> : ICriticalNotifyCompletion, INotifyCompletion, IFTask
类型参数
属性
|
编辑本文
查看源代码
FTaskType
声明
public FTaskType FTaskType { get; set; }
属性值
|
编辑本文
查看源代码
IsCompleted
声明
public bool IsCompleted { get; }
属性值
|
编辑本文
查看源代码
UserToKen
声明
public object UserToKen { get; set; }
属性值
方法
|
编辑本文
查看源代码
Coroutine()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Coroutine()
|
编辑本文
查看源代码
Coroutine(object)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Coroutine(object userToken)
参数
|
编辑本文
查看源代码
Create(bool)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static FTask<T> Create(bool isPool = true)
参数
类型 |
名称 |
描述 |
bool |
isPool |
是否从对象池中创建
|
返回
|
编辑本文
查看源代码
GetAwaiter()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FTask<T> GetAwaiter()
返回
|
编辑本文
查看源代码
GetResult()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public T GetResult()
返回
|
编辑本文
查看源代码
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void OnCompleted(Action action)
参数
异常
|
编辑本文
查看源代码
SetException(Exception)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetException(Exception exception)
参数
|
编辑本文
查看源代码
SetResult(T)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetResult(T value)
参数
|
编辑本文
查看源代码
SetUserToKen(object)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FTask<T> SetUserToKen(object userToken)
参数
返回
|
编辑本文
查看源代码
UnsafeOnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void UnsafeOnCompleted(Action action)
参数
异常
实现
扩展方法