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<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<TObject>, IEnumerable, IAsyncEnumerable<TObject> where TClass : JVMBridgeBase

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
Inherited Members
Extension Methods

Constructors

JNetAsyncEnumerable()

public JNetAsyncEnumerable()

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

JNetAsyncEnumerable(params object[])

public JNetAsyncEnumerable(params object[] args)

Parameters

args object[]

The arguments to send to base class JVMBridgeBaseEnumerable<TClass, TObject>

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.