Module: Ably::Modules::SafeYield Private

Included in:
EventEmitter, MessageEmitter, Realtime::Connection, Realtime::Presence, Realtime::Presence::MembersMap
Defined in:
lib/ably/modules/safe_yield.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Note:

this Module requires that the method #logger is available

SafeYield provides the method safe_yield that will yield to the consumer who provided a block, however any exceptions will be caught, logged, and operation of the client library will continue.

An exception in a callback provided by a developer should not break this client library and stop further execution of code.