Table of Contents

Class JNetAsyncEnumerable<TClass, TObject>

Namespace
MASES.JNet.Specific
Assembly
MASES.JNet.dll

An extension of JVMBridgeBaseEnumerable<TClass, TObject> implementing IAsyncEnumerable<T> to manage Java Iterable in async way

public abstract class JNetAsyncEnumerable<TClass, TObject> : JVMBridgeBaseEnumerable<TClass, TObject>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<TObject>, IEnumerable, IAsyncEnumerable<TObject> where TClass : class, IJVMBridgeBase

Type Parameters

TClass

The class implementing IJVMBridgeBase

TObject

The type of objects to enumerate implementing IJVMBridgeBase

Inheritance
JVMBridgeBaseEnumerable<TClass, TObject>
JNetAsyncEnumerable<TClass, TObject>
Implements
IEnumerable<TObject>
Derived
Extension Methods

Constructors

JNetAsyncEnumerable(IJVMBridgeBaseInitializer)

Initializer used internally

public JNetAsyncEnumerable(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

An instance of IJVMBridgeBaseInitializer

Remarks

Shall be available in any class inherited from JVMBridgeBase

Methods

GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

public IAsyncEnumerator<TObject> GetAsyncEnumerator(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken that may be used to cancel the asynchronous iteration.

Returns

IAsyncEnumerator<TObject>

An enumerator that can be used to iterate asynchronously through the collection.