We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Lockable
1 parent a6394cd commit 6ab22e4Copy full SHA for 6ab22e4
base/lock.jl
@@ -398,7 +398,7 @@ macro lock_nofail(l, expr)
398
end
399
400
"""
401
- Lockable(value, lock = ReentrantLock())
+ Lockable(value, lock = ReentrantLock())
402
403
Creates a `Lockable` object that wraps `value` and
404
associates it with the provided `lock`. This object
@@ -431,7 +431,7 @@ Lockable(value) = Lockable(value, ReentrantLock())
431
getindex(l::Lockable) = (assert_havelock(l.lock); l.value)
432
433
434
- lock(f::Function, l::Lockable)
+ lock(f::Function, l::Lockable)
435
436
Acquire the lock associated with `l`, execute `f` with the lock held,
437
and release the lock when `f` returns. `f` will receive one positional
0 commit comments