wrapSync()
wrapSync(callable $default, callable $sync) : callable
Sends synchronous requests to a specific handler while sending all other requests to another handler.
Parameters
callable | $default | Handler used for normal responses |
callable | $sync | Handler used for synchronous responses. |
Returns
callable —Returns the composed handler.