AsyncReactiveProperty Class

| UniTask (original) (raw)

Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
[Serializable]
public class AsyncReactiveProperty<T> : IAsyncReactiveProperty<T>, IReadOnlyAsyncReactiveProperty<T>, IUniTaskAsyncEnumerable<T>, IDisposable
Inheritance

System.Object → AsyncReactiveProperty

Implements

System.IDisposable

Type Parameters

T

Members

Constructors

Name Description
AsyncReactiveProperty(T)

Properties

Name Description
Value

Methods

Name Description
Dispose()
GetAsyncEnumerator(CancellationToken)
ToString()
WaitAsync(CancellationToken)
WithoutCurrent()

Operators

Name Description
Implicit(AsyncReactiveProperty to T)

Constructors

AsyncReactiveProperty(T)

public AsyncReactiveProperty(T value)
Parameters

value T

Properties

Value

public T Value { get; set; }
Property Value

T

Methods

Dispose()

GetAsyncEnumerator(CancellationToken)

public IUniTaskAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken)
Parameters

cancellationToken System.Threading.CancellationToken

Returns

IUniTaskAsyncEnumerator

ToString()

public override string ToString()
Returns

System.String

Overrides

System.Object.ToString()

WaitAsync(CancellationToken)

public UniTask<T> WaitAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters

cancellationToken System.Threading.CancellationToken

Returns

UniTask

WithoutCurrent()

public IUniTaskAsyncEnumerable<T> WithoutCurrent()
Returns

IUniTaskAsyncEnumerable

Operators

Implicit(AsyncReactiveProperty to T)

public static implicit operator T(AsyncReactiveProperty<T> value)
Parameters

value AsyncReactiveProperty

Returns

T

Implements

System.IDisposable