How to set Timeouts in commands in wpilib

How do we set timeouts in commands in wpilib? Last year, we used the setTimeout method to control waits in our commands. This year, this command seems to have vanished. Is there a replacement to this command, or is their a library to be imported to use the command.

Thank you in advance

I believe it is replaced by withTimeout, take a look here:

This could work, maybe

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.