Class JNetAsyncEnumerable<TClass, TObject>
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
TClassThe class implementing IJVMBridgeBase
TObjectThe type of objects to enumerate implementing IJVMBridgeBase
- Inheritance
-
JVMBridgeBase<TClass>JVMBridgeBaseEnumerable<TClass>JVMBridgeBaseEnumerable<TClass, TObject>JNetAsyncEnumerable<TClass, TObject>
- Implements
-
IEnumerable<TObject>IAsyncEnumerable<TObject>
- Derived
- Extension Methods
Constructors
JNetAsyncEnumerable(IJVMBridgeBaseInitializer)
Initializer used internally
public JNetAsyncEnumerable(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializerAn 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
cancellationTokenCancellationTokenA 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.