Skip to content

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>>
AssemblyXantham.Fable.Node

Properties

abstract member SymbolToStringTag: string
abstract member child: ChildProcess with get, set

Methods

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
onfinallyThe 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>>

Attaches callbacks for the resolution and/or rejection of the Promise.

Parameter
onfulfilledThe callback to execute when the Promise is resolved.
onrejectedThe callback to execute when the Promise is rejected.

Returns. A Promise for the completion of which ever callback is executed.

abstract member catch<'TResult> (?onrejected: (obj -> U2<'TResult,Promise<'TResult>>)) : Promise<U2<'T,'TResult>>

Attaches a callback for only the rejection of the Promise.

Parameter
onrejectedThe callback to execute when the Promise is rejected.

Returns. A Promise for the completion of the callback.