Skip to content

Introduce a UniqueThread.loop shorthand #5

@ferdynton

Description

@ferdynton

The interface would look like:

UniqueThread.loop('lock_name', sleep: 30) do
  # do something every 30 seconds
end

This seems to be the most common use case for this gem so far, so it makes sense to have a shorthand for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions