Click or drag to resize

V8PromiseHook Delegate

Represents a callback for promise lifecycle events.

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.1.1
Syntax
public delegate void V8PromiseHook(
	V8PromiseEventKind kind,
	ScriptObject promise,
	ScriptObject parent
)

Parameters

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