UniTask
Show / Hide Table of Contents

AsyncUnityEventHandler<T> Class

Namespace: Cysharp.Threading.Tasks
Assembly: UniTask.dll
public class AsyncUnityEventHandler<T> : IUniTaskSource<T>, IUniTaskSource, IValueTaskSource, IValueTaskSource<T>, IAsyncValueChangedEventHandler<T>, IAsyncEndEditEventHandler<T>, IAsyncEndTextSelectionEventHandler<T>, IAsyncTextSelectionEventHandler<T>, IAsyncDeselectEventHandler<T>, IAsyncSelectEventHandler<T>, IAsyncSubmitEventHandler<T>, IDisposable
Inheritance
object → AsyncUnityEventHandler<T>
Implements
IUniTaskSource<T>
IUniTaskSource
IValueTaskSource
IValueTaskSource<T>
IAsyncValueChangedEventHandler<T>
IAsyncEndEditEventHandler<T>
IAsyncEndTextSelectionEventHandler<T>
IAsyncTextSelectionEventHandler<T>
IAsyncDeselectEventHandler<T>
IAsyncSelectEventHandler<T>
IAsyncSubmitEventHandler<T>
IDisposable

Type Parameters

T

Members

Constructors

Name Description
AsyncUnityEventHandler(UnityEvent<T>, CancellationToken, bool)

Methods

Name Description
Dispose()
OnInvokeAsync()

Constructors

AsyncUnityEventHandler(UnityEvent<T>, CancellationToken, bool)

public AsyncUnityEventHandler(UnityEvent<T> unityEvent, CancellationToken cancellationToken, bool callOnce)
Parameters
unityEvent UnityEvent<T>
cancellationToken CancellationToken
callOnce bool

Methods

Dispose()

public void Dispose()

OnInvokeAsync()

public UniTask<T> OnInvokeAsync()
Returns
UniTask<T>

Implements

IUniTaskSource<T>
IUniTaskSource
IValueTaskSource
IValueTaskSource<TResult>
IAsyncValueChangedEventHandler<T>
IAsyncEndEditEventHandler<T>
IAsyncEndTextSelectionEventHandler<T>
IAsyncTextSelectionEventHandler<T>
IAsyncDeselectEventHandler<T>
IAsyncSelectEventHandler<T>
IAsyncSubmitEventHandler<T>
IDisposable

Extension Methods

CancellationTokenExtensions.AddTo(IDisposable, CancellationToken)
Back to top Copyright © Cysharp, Inc. | Generated by DocFX