Running a callback once `workflow.condition` times out

Hello, I may have missed something but is there a way for me to call an function that will handle the timeout error when the await workflow.condition(<boolean>, <timeout>) times out?

Hi @yellowpandas

workflow.condition will resolve to false if the timeout expires. You can have something like


await condition(fn, '1 min')
        .then(result => {

            if (!result) {
                //timed out
            }
            return result;
        });

Regards,
Antonio