Table of Contents

Class JNetAsyncEnumerator<TObject>

Namespace
MASES.JNet.Specific
Assembly
MASES.JNet.dll
public class JNetAsyncEnumerator<TObject> : JVMBridgeBasePrefetchableEnumerator<TObject>, IEnumerator<TObject>, IDisposable, IEnumerator, IAsyncEnumerator<TObject>, IAsyncDisposable

Type Parameters

TObject

The returning type of the iterator

Inheritance
JVMBridgeBasePrefetchableEnumerator
JVMBridgeBasePrefetchableEnumerator<TObject>
JNetAsyncEnumerator<TObject>
Implements
IEnumerator<TObject>
Inherited Members
JVMBridgeBasePrefetchableEnumerator.Dispose()
JVMBridgeBasePrefetchableEnumerator.MoveNext()
JVMBridgeBasePrefetchableEnumerator.Reset()

Constructors

JNetAsyncEnumerator(IJavaObject, IEnumerableExtension, CancellationToken)

public JNetAsyncEnumerator(IJavaObject refObj, IEnumerableExtension extension, CancellationToken cancellationToken)

Parameters

refObj IJavaObject

Reference to MASES.JCOBridge.C2JBridge.JVMInterop.IJavaObject implementing Java Iterator

extension IEnumerableExtension

Extension from MASES.JCOBridge.C2JBridge.JVMBridgeBaseEnumerable<TClass>

cancellationToken CancellationToken

CancellationToken to use in the iteration

Methods

DoWorkCycle()

protected override bool DoWorkCycle()

Returns

bool

MoveNextAsync()

Advances the enumerator asynchronously to the next element of the collection.

public ValueTask<bool> MoveNextAsync()

Returns

ValueTask<bool>

A ValueTask<TResult> that will complete with a result of true if the enumerator was successfully advanced to the next element, or false if the enumerator has passed the end of the collection.