AsyncUnityEventHandler Class
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public class AsyncUnityEventHandler : IUniTaskSource, IValueTaskSource, IAsyncClickEventHandler
Inheritance
System.Object → AsyncUnityEventHandlerImplements
System.Threading.Tasks.Sources.IValueTaskSource
IDisposable
Members
Constructors
Name | Description |
---|---|
AsyncUnityEventHandler(UnityEvent, CancellationToken, Boolean) |
Methods
Name | Description |
---|---|
Dispose() | |
OnInvokeAsync() |
Explicit Interface Implementations
Constructors
AsyncUnityEventHandler(UnityEvent, CancellationToken, Boolean)
public AsyncUnityEventHandler(UnityEvent unityEvent, CancellationToken cancellationToken, bool callOnce)
Parameters
unityEvent
UnityEventcancellationToken
CancellationTokencallOnce
System.Boolean
Methods
Dispose()
public void Dispose()
OnInvokeAsync()
public UniTask OnInvokeAsync()
Returns
Explicit Interface Implementations
IAsyncClickEventHandler.OnClickAsync()
UniTask IAsyncClickEventHandler.OnClickAsync()
Returns
IUniTaskSource.GetResult(Int16)
void IUniTaskSource.GetResult(short token)
Parameters
token
System.Int16
IUniTaskSource.GetStatus(Int16)
UniTaskStatus IUniTaskSource.GetStatus(short token)
Parameters
token
System.Int16
Returns
IUniTaskSource.OnCompleted(Action<Object>, Object, Int16)
void IUniTaskSource.OnCompleted(Action<object> continuation, object state, short token)
Parameters
continuation
Action<System.Object>state
System.Objecttoken
System.Int16
IUniTaskSource.UnsafeGetStatus()
UniTaskStatus IUniTaskSource.UnsafeGetStatus()
Returns
Implements
System.Threading.Tasks.Sources.IValueTaskSource
IDisposable