小编Thi*_*ora的帖子

java.time.Instant (1.8) 是线程安全的吗?

Instant instant;
void updateBy(){
   instant = Instant.now();
}
Run Code Online (Sandbox Code Playgroud)

如果是,如何证明 Instant 是线程安全的?

java java.time.instant

1
推荐指数
1
解决办法
1759
查看次数

标签 统计

java ×1

java.time.instant ×1