Wait for another event

Suppose a flow start with a trigger A, after few steps Say I gotta wait for another event B. Can we do this -

Hello @hari , What is event B? Is it another webhook response or an HTTP request? We have a subflow piece that calls another flow within the current flow and gets a response from it.

Event B is a webhook response

This is an example flow using HubSpot.com. They have a feature that allows waiting for an event. In Activepieces, the delay only supports a time-based wait, I believe