Click or drag to resize

V8FastHostObjectConfigurationTObjectSetAsyncEnumeratorFactoryTItem(FuncTObject, IAsyncEnumeratorTItem) Method

Sets a callback that creates an asynchronous enumerator for a TObject instance in IAsyncEnumeratorT 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  FuncTObject, IAsyncEnumeratorTItem
A callback that creates an asynchronous enumerator for a TObject instance in IAsyncEnumeratorT form.

Type Parameters

TItem
The asynchronous enumerator's item type.
See Also