withStartToCloseTimeout(5) ); // waits for 2 seconds $slow = $simple->slow('DOING SLOW ACTIVITY'); try { return yield $slow; } catch (CanceledFailure $e) { return "CANCELLED"; } } }