JSPromise.Then method
Registers callbacks that are invoked when a promise is fulfilled and/or rejected, and returns a new chained promise.
C#
public JSPromise Then(Func<JSValue, JSValue>? fulfilled, Func<JSError, JSValue>? rejected = null)
See Also
- struct JSValue
- struct JSError
- struct JSPromise
- namespace Microsoft.JavaScript.NodeApi