Skip to content

Please provide an initializer with options #3

@grosser

Description

@grosser

I want to inherit and pass other options, which is kind of a pain with the current implementation

def initialize(key, options={})
      super(key, options[:timeout] || DistributedMutex::DEFAULT_TIMEOUT, options[:exception] || DistributedMutex::DEFAULT_EXCEPTION_ON_TIMEOUT)
      @options = options
    end
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions