FTask 类
程序集: Fantasy.Net.dll
语法
[AsyncMethodBuilder(typeof(AsyncFTaskMethodBuilder))]
public sealed class FTask : ICriticalNotifyCompletion, INotifyCompletion, IFTask
属性
|
编辑本文
查看源代码
CompletedTask
声明
public static FTaskCompleted CompletedTask { get; }
属性值
|
编辑本文
查看源代码
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 Create(bool isPool = true)
参数
类型 |
名称 |
描述 |
bool |
isPool |
是否从对象池中创建
|
返回
|
编辑本文
查看源代码
GetAwaiter()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FTask GetAwaiter()
返回
|
编辑本文
查看源代码
GetResult()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void GetResult()
|
编辑本文
查看源代码
GetUserTokenAsync<T>()
声明
public static FTask<T> GetUserTokenAsync<T>() where T : class
返回
类型 |
描述 |
FTask<T> |
返回一个UserToken
|
类型参数
|
编辑本文
查看源代码
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()
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetResult()
|
编辑本文
查看源代码
SetUserToKen(object)
声明
[DebuggerHidden]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public FTask 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)
参数
异常
|
编辑本文
查看源代码
WaitAll(List<FTask>)
声明
public static FTask WaitAll(List<FTask> tasks)
参数
返回
|
编辑本文
查看源代码
WaitAny(List<FTask>)
声明
public static FTask WaitAny(List<FTask> tasks)
参数
返回
实现
扩展方法