Sha256: 24fcd91331a0ae4f74f4a55a8ff9f796ebd5449f417ae0ff2721144fd2063e09

Contents?: true

Size: 547 Bytes

Versions: 26

Compression:

Stored size: 547 Bytes

Contents

module Ably::Util
  # SafeDeferrable class provides a Deferrable that is safe to use for for public interfaces
  # of this client library.  Any exceptions raised in the success or failure callbacks are
  # caught and logged to the provided logger.
  #
  # An exception in a callback provided by a developer should not break this client library
  # and stop further execution of code.
  #
  class SafeDeferrable
    include Ably::Modules::SafeDeferrable

    attr_reader :logger

    def initialize(logger)
      @logger = logger
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
ably-rest-0.8.15 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-0.8.15 lib/ably/util/safe_deferrable.rb
ably-rest-0.9.3 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-rest-0.9.2 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-rest-0.9.1 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-rest-0.9.0 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-rest-0.8.14 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-0.8.14 lib/ably/util/safe_deferrable.rb
ably-rest-0.8.13 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-0.8.13 lib/ably/util/safe_deferrable.rb
ably-0.8.12 lib/ably/util/safe_deferrable.rb
ably-0.8.11 lib/ably/util/safe_deferrable.rb
ably-0.8.10 lib/ably/util/safe_deferrable.rb
ably-rest-0.8.9 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-0.8.9 lib/ably/util/safe_deferrable.rb
ably-0.8.8 lib/ably/util/safe_deferrable.rb
ably-0.8.7 lib/ably/util/safe_deferrable.rb
ably-0.8.6 lib/ably/util/safe_deferrable.rb
ably-rest-0.8.6 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb
ably-rest-0.8.5 lib/submodules/ably-ruby/lib/ably/util/safe_deferrable.rb