toggle menu
alchemist
jvm
switch theme
search in API
alchemist
/
it.unibo.alchemist.multivesta.adapter.utils
/
FileLock
File
Lock
class
FileLock
(
name
:
String
,
folder
:
String
=
"tmp"
)
A file lock that uses the local filesystem.
Members
Constructors
File
Lock
Link copied to clipboard
constructor
(
name
:
String
,
folder
:
String
=
"tmp"
)
Functions
do
With
Lock
Link copied to clipboard
fun
<
T
>
doWithLock
(
f
:
Supplier
<
T
>
)
:
T
Executes the given
Supplier
while holding the lock.