docs($timeout): add a $timeout example

The original example is by gxlcl.

Closes #4180