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(Func TObject, IV8FastAsyncEnumerator) Method

Sets a callback that creates an asynchronous enumerator for a TObject instance in IV8FastAsyncEnumerator form.
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public abstract void SetAsyncEnumeratorFactory(
    	Func<TObject, IV8FastAsyncEnumerator> factory
    )

    Public MustOverride Sub SetAsyncEnumeratorFactory (
    	factory As Func(Of TObject, IV8FastAsyncEnumerator)
    )

    public:
    virtual void SetAsyncEnumeratorFactory(
    	Func<TObject, IV8FastAsyncEnumerator^>^ factory
    ) abstract

    abstract SetAsyncEnumeratorFactory :
            factory : Func<'TObject, IV8FastAsyncEnumerator> -> unit

#### Parameters

factory Func TObject, IV8FastAsyncEnumerator
  A callback that creates an asynchronous enumerator for a TObject instance in IV8FastAsyncEnumerator form.

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