Simple feedback server

This commit is contained in:
2023-08-13 15:06:45 -06:00
parent 7ec5117480
commit 6f6c8685a2
1697 changed files with 3346391 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package node.v8;
/**
Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or
around an await, and when the promise resolves or rejects.
Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
`settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop.
**/
typedef HookCallbacks = {
@:optional
dynamic function init(promise:js.lib.Promise<Any>, parent:js.lib.Promise<Any>):Void;
@:optional
dynamic function before(promise:js.lib.Promise<Any>):Void;
@:optional
dynamic function after(promise:js.lib.Promise<Any>):Void;
@:optional
dynamic function settled(promise:js.lib.Promise<Any>):Void;
};