|| apoc.util.sleep - APOC 核心文档 - Neo4j 文档

apoc.util.sleep

详情

语法

apoc.util.sleep(duration)

描述

使当前运行的 Cypher 暂停指定毫秒数(事务终止时生效)。

输入参数

名称

类型

描述

duration

INTEGER

暂停的毫秒数。

使用示例

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;
结果
开始 结束

2021-01-19T12:19:11.978Z

2021-01-19T12:19:12.978Z

© . This site is unofficial and not affiliated with Neo4j, Inc.