ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostObjectConfiguration<TObject> Class
V8FastHostObjectConfiguration<TObject> Methods
SetAsyncEnumeratorFactory Method
SetAsyncEnumeratorFactory(Func<TObject, IV8FastAsyncEnumerator>) Method
SetAsyncEnumeratorFactory<TItem>(Func<TObject, IAsyncEnumerator<TItem>>) Method

# V8FastHostObjectConfiguration TObject SetAsyncEnumeratorFactory TItem(Func TObject, IAsyncEnumerator TItem) 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
C#
VB
C++
F#
Copy

    public void SetAsyncEnumeratorFactory<TItem>(
    	Func<TObject, IAsyncEnumerator<TItem>> factory
    )

    Public Sub SetAsyncEnumeratorFactory(Of TItem) (
    	factory As Func(Of TObject, IAsyncEnumerator(Of TItem))
    )

    public:
    generic<typename TItem>
    void SetAsyncEnumeratorFactory(
    	Func<TObject, IAsyncEnumerator<TItem>^>^ factory
    )

    member SetAsyncEnumeratorFactory :
            factory : Func<'TObject, IAsyncEnumerator<'TItem>> -> unit

#### Parameters

factory Func TObject, IAsyncEnumerator TItem
  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

#### Reference

V8FastHostObjectConfigurationTObject Class
SetAsyncEnumeratorFactory Overload
Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft