onAfter

abstract var onAfter: (after: After) -> Function<*>(source)

The after hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.

Since

v17.1.0, v16.14.0

Return

Call to stop the hook.

Parameters

after

The {@link After | after callback} to call after a promise continuation executes.