Click or drag to resize

JavaScriptExtensionsToPromise Method

Overload List
 NameDescription
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 MethodToPromiseT(TaskT) Converts a TaskTResult instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromiseT(ValueTaskT) Converts a ValueTaskTResult instance to a promise for use with script code currently running on the calling thread.
Public Extension MethodToPromiseT(TaskT, ScriptEngine) Converts a TaskTResult instance to a promise for use with script code running in the specified script engine.
Public Extension MethodToPromiseT(ValueTaskT, ScriptEngine) Converts a ValueTaskTResult instance to a promise for use with script code running in the specified script engine.
Top
See Also