Added @timedwait

Closes #3753