apoc.util.sleep

Procedure APOC Core

apoc.util.sleep(<duration>) | sleeps for <duration> millis, transaction termination is honored

Signature

apoc.util.sleep(duration :: INTEGER?) :: VOID

Input parameters

Name Type Default

duration

INTEGER?

null

Usage Examples

WITH apoc.date.currentTimestamp() AS start
CALL apoc.util.sleep(1000)
WITH start, apoc.date.currentTimestamp() AS end
RETURN datetime({epochmillis: start}) AS start,
       datetime({epochmillis: end}) AS end;
Table 1. Results
start end

2021-01-19T12:19:11.978Z

2021-01-19T12:19:12.978Z