@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / HelperNext
Interface: HelperNext()<TOutput>
Explicit continuation for wrapping the remainder of a helper chain.
Calling the continuation executes the remainder of a helper chain.
Remarks
With no argument, downstream helpers receive the current output. Supplying an argument replaces it. Repeated calls share the same downstream execution and settlement while the owning helper participant remains unsettled. The continuation is revoked when that participant settles; later calls fail without executing downstream work. If a helper launches asynchronous downstream work without awaiting it, the pipeline still waits for that work before settling the helper or beginning rollback.
Type Parameters
TOutput
TOutput
Value threaded through the helper chain.
Call Signature
HelperNext(): MaybePromise<TOutput>;Continues with the current output.
Returns
MaybePromise<TOutput>
Call Signature
HelperNext(output): MaybePromise<TOutput>;Continues with an explicit replacement output.
Parameters
output
TOutput
Value supplied to the next helper in the chain.
Returns
MaybePromise<TOutput>
