AsyncUnityEventHandler<T> Class
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public class AsyncUnityEventHandler<T> : IUniTaskSource<T>, IUniTaskSource, IAsyncValueChangedEventHandler<T>, IAsyncEndEditEventHandler<T>, IDisposable
Inheritance
System.Object → AsyncUnityEventHandler<T>Implements
System.IDisposable
Type Parameters
T
Members
Constructors
Name | Description |
---|---|
AsyncUnityEventHandler(UnityEvent<T>, CancellationToken, Boolean) |
Methods
Name | Description |
---|---|
Dispose() | |
OnInvokeAsync() |
Explicit Interface Implementations
Constructors
AsyncUnityEventHandler(UnityEvent<T>, CancellationToken, Boolean)
public AsyncUnityEventHandler(UnityEvent<T> unityEvent, CancellationToken cancellationToken, bool callOnce)
Parameters
unityEvent
UnityEvent<T>cancellationToken
System.Threading.CancellationTokencallOnce
System.Boolean
Methods
Dispose()
public void Dispose()
OnInvokeAsync()
public UniTask<T> OnInvokeAsync()
Returns
- UniTask<T>
Explicit Interface Implementations
IAsyncEndEditEventHandler<T>.OnEndEditAsync()
UniTask<T> IAsyncEndEditEventHandler<T>.OnEndEditAsync()
Returns
- UniTask<T>
IAsyncValueChangedEventHandler<T>.OnValueChangedAsync()
UniTask<T> IAsyncValueChangedEventHandler<T>.OnValueChangedAsync()
Returns
- UniTask<T>
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
System.Action<System.Object>state
System.Objecttoken
System.Int16
IUniTaskSource.UnsafeGetStatus()
UniTaskStatus IUniTaskSource.UnsafeGetStatus()
Returns
IUniTaskSource<T>.GetResult(Int16)
T IUniTaskSource<T>.GetResult(short token)
Parameters
token
System.Int16
Returns
- T
Implements
System.IDisposable