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 0aac5db commit 9c02bf3Copy full SHA for 9c02bf3
base/lock.jl
@@ -295,7 +295,7 @@ macro lock_nofail(l, expr)
295
end
296
297
"""
298
- Lockable(value, lock = ReentrantLock())
+ Lockable(value, lock = ReentrantLock())
299
300
Creates a `Lockable` object that wraps `value` and
301
associates it with the provided `lock`. This object
@@ -328,7 +328,7 @@ Lockable(value) = Lockable(value, ReentrantLock())
328
getindex(l::Lockable) = (assert_havelock(l.lock); l.value)
329
330
331
- lock(f::Function, l::Lockable)
+ lock(f::Function, l::Lockable)
332
333
Acquire the lock associated with `l`, execute `f` with the lock held,
334
and release the lock when `f` returns. `f` will receive one positional
0 commit comments