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, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IEnumerableExtension, IEnumerable<TObject>, IEnumerable, IAsyncEnumerable<TObject> where TClass : JVMBridgeBase, new()
Type Parameters
TClass
The class implementing IJVMBridgeBase
TObject
The type of objects to enumerate implementing IJVMBridgeBase
- Inheritance
-
JVMBridgeBase<TClass>JVMBridgeBaseEnumerable<TClass>JVMBridgeBaseEnumerable<TClass, TObject>JNetAsyncEnumerable<TClass, TObject>
- Implements
-
IEnumerable<TObject>IAsyncEnumerable<TObject>
- Derived
- Inherited Members
- Extension Methods
Constructors
JNetAsyncEnumerable()
Create an instance of JNetAsyncEnumerable<TClass, TObject>
public JNetAsyncEnumerable()
JNetAsyncEnumerable(params object[])
Create an instance of JNetAsyncEnumerable<TClass, TObject>
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
CancellationTokenA 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.