Sha256: 02c7e1d014ebd541ea6d7429031cc8f365471628d5acecfb07d5d9a1996d995c
Contents?: true
Size: 396 Bytes
Versions: 8
Compression:
Stored size: 396 Bytes
Contents
module Faye class Subscription include Deferrable def initialize(client, channels, callback) @client = client @channels = channels @callback = callback @cancelled = false end def cancel return if @cancelled @client.unsubscribe(@channels, &@callback) @cancelled = true end def unsubscribe cancel end end end
Version data entries
8 entries across 8 versions & 3 rubygems