data LockTimeout
cluster.lock could not take the lock within the wait time.
Example:
fn main() io, net, time {
let r = cluster.lock("job", wait: 1s) { "ran" }
match r {
str s => print(s)
LockTimeout t => print("could not lock {t.key}")
NetError _ => print("unavailable")
}
}Output
ran
pub(api) data LockTimeoutSince. 1.0.0-beta
Fields
pub(api) key: str | The key of the lock that could not be taken. |
Defined in: std/core/node.oxl:780