apoc.util.sleep
Procedure
apoc.util.sleep(duration Integer)
- causes the currently running Cypher to sleep for the given duration of milliseconds (the transaction termination is honored).
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;
start | end |
---|---|
2021-01-19T12:19:11.978Z |
2021-01-19T12:19:12.978Z |
Was this page helpful?