PromiseWithChild
[<Interface>]
type PromiseWithChild<'T> =
abstract member SymbolToStringTag: string
abstract member child: ChildProcess with get, set
abstract member ``finally`` (?onfinally: (unit -> unit)) : Promise<'T>
abstract member ``then``<'TResult1, 'TResult2> (?onfulfilled: ('T -> U2<'TResult1,Promise<'TResult1>>), ?onrejected: (obj -> U2<'TResult2,Promise<'TResult2>>)) : Promise<U2<'TResult1,'TResult2>>
abstract member catch<'TResult> (?onrejected: (obj -> U2<'TResult,Promise<'TResult>>)) : Promise<U2<'T,'TResult>>| Assembly | Xantham.Fable.Node |
Properties
Methods
abstract member ``finally`` (?onfinally: (unit -> unit)) : Promise<'T>
abstract member ``finally`` (?onfinally: (unit -> unit)) : Promise<'T>Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
| Parameter | |
|---|---|
onfinally | The callback to execute when the Promise is settled (fulfilled or rejected). |
Returns. A Promise for the completion of the callback.
abstract member ``then``<'TResult1, 'TResult2> (?onfulfilled: ('T -> U2<'TResult1,Promise<'TResult1>>), ?onrejected: (obj -> U2<'TResult2,Promise<'TResult2>>)) : Promise<U2<'TResult1,'TResult2>>
abstract member ``then``<'TResult1, 'TResult2> (?onfulfilled: ('T -> U2<'TResult1,Promise<'TResult1>>), ?onrejected: (obj -> U2<'TResult2,Promise<'TResult2>>)) : Promise<U2<'TResult1,'TResult2>>Attaches callbacks for the resolution and/or rejection of the Promise.
| Parameter | |
|---|---|
onfulfilled | The callback to execute when the Promise is resolved. |
onrejected | The callback to execute when the Promise is rejected. |
Returns. A Promise for the completion of which ever callback is executed.