package
Version:
v5.3.1
Opens a new window with list of versions in this module.
Published: Dec 4, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsCompleted 等待文件有数据且已写完
费时操作 放在子线程中执行
@param file 文件
@param start 需要传入 time.Now.Local(),用于兼容遍历的情况
@return true:已写完 false:外部程序阻塞或者文件不存在
Lock 共享锁(支持多读),非阻塞模式,获取失败直接返回错误
LockBlock 共享锁,阻塞模式,获取不到时阻塞等待直至成功
LockEx 独占锁(独占读和写),非阻塞模式,获取失败直接返回错误
LockExBlock 独占锁,阻塞模式,获取不到时阻塞等待直至成功
Source Files
¶
Click to show internal directories.
Click to hide internal directories.