xdmp:sleep( $msec as xs:unsignedInt ) as empty-sequence()
Delays for a specific amount of time.
(: sleep for 1 second :) xdmp:sleep(1000) => ()