Click or drag to resize

V8FastHostObjectConfiguration<TObject>.SetAsyncEnumeratorFactory<TItem>(Func<TObject, IAsyncEnumerator<TItem>>) Method

Sets a callback that creates an asynchronous enumerator for a TObject instance in IAsyncEnumerator<T> form.

Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
public void SetAsyncEnumeratorFactory<TItem>(
	Func<TObject, IAsyncEnumerator<TItem>> factory
)

Parameters

factory  Func<TObject, IAsyncEnumerator<TItem>>
A callback that creates an asynchronous enumerator for a TObject instance in IAsyncEnumerator<T> form.

Type Parameters

TItem
The asynchronous enumerator's item type.
See Also