Represents a callback for
promise lifecycle events.
Namespace: Microsoft.ClearScript.V8Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.1.1
Syntaxpublic delegate void V8PromiseHook(
V8PromiseEventKind kind,
ScriptObject promise,
ScriptObject parent
)
Public Delegate Sub V8PromiseHook (
kind As V8PromiseEventKind,
promise As ScriptObject,
parent As ScriptObject
)
public delegate void V8PromiseHook(
V8PromiseEventKind kind,
ScriptObject^ promise,
ScriptObject^ parent
)
type V8PromiseHook =
delegate of
kind : V8PromiseEventKind *
promise : ScriptObject *
parent : ScriptObject -> unitParameters
- kind V8PromiseEventKind
- The promise event that occurred.
- promise ScriptObject
- The promise for which the event occurred.
- parent ScriptObject
- The parent promise if applicable, null otherwise (see remarks).
Remarks
When a promise is created as part of a chain, the callback is invoked with
kind set to
Created and
parent set to the parent promise. In all other situations,
parent is set to
null.
See Also