Skip to content

Add SugarUtils::File.flock_mutex #5

@acant

Description

@acant

Add this method which will use flock to ensure that the only one process can execute the given block at a time.

SugarUtils::File.flock_mutex(filename) do
  # code to run within the mutex
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions