Skip to content

JSCollectionExtensions.AsAsyncEnumerable<T> method

Creates an async enumerable adapter for a JS async-iterable object, without copying.

C#
public static IAsyncEnumerable<T> AsAsyncEnumerable<T>(this JSAsyncIterable iterable, To<T> fromJS)

Remarks

This method must be called from the JS thread. The returned enumerable object is thread-safe and may be accessed from threads other than the JS thread (though accessing from the JS thread is more efficient).

See Also

Released under the MIT license