Click or drag to resize

JavaScriptExtensions Methods

The JavaScriptExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodToAsyncEnumerable Supports managed asynchronous iteration over an async-iterable script object.
Public Extension MethodToEnumerable Supports managed iteration over an iterable script object.
Public Extension MethodToPromise(Task) Converts a Task instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromise(ValueTask) Converts a ValueTask instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromise(Task, ScriptEngine) Converts a Task instance to a promise for use with script code running in the specified script engine.
Public Extension MethodToPromise(ValueTask, ScriptEngine) Converts a ValueTask instance to a promise for use with script code running in the specified script engine.
Public Extension MethodToPromise<T>(Task<T>) Converts a Task<TResult> instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromise<T>(ValueTask<T>) Converts a ValueTask<TResult> instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromise<T>(Task<T>, ScriptEngine) Converts a Task<TResult> instance to a promise for use with script code running in the specified script engine.
Public Extension MethodToPromise<T>(ValueTask<T>, ScriptEngine) Converts a ValueTask<TResult> instance to a promise for use with script code running in the specified script engine.
Public Extension MethodToTask Converts a promise to a Task<Object> instance.
Top
See Also