Skip to content

os.filelock #

fn new #

fn new(fileName string) FileLock

struct FileLock #

struct FileLock {
	name string
mut:
	fd int
}

fn (FileLock) acquire #

fn (mut l FileLock) acquire() !

fn (FileLock) release #

fn (mut l FileLock) release() bool

fn (FileLock) try_acquire #

fn (mut l FileLock) try_acquire() bool

fn (FileLock) wait_acquire #

fn (mut l FileLock) wait_acquire(timeout time.Duration) bool