Loading TOC...

MarkLogic Server 11.0 Product Documentation
dbg:wait

dbg:wait(
   $request-id as xs:unsignedLong*,
   $timeout as xs:unsignedLong
) as xs:unsignedLong?

Summary

Wait until at least one of the given requests stops or all complete evaluating. Wait will return the empty sequence after a requested timeout if none of the requests have stopped. Otherwise, it returns the request ID of a stopped (or finished) request.

Parameters
request-id One or more request IDs.
timeout Requested timeout (in seconds).

Required Privileges

http://marklogic.com/xdmp/privileges/debug-my-requests or http://marklogic.com/xdmp/privileges/debug-any-requests

Example

  dbg:wait(23424324342, 10)
  => ()
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.