class Cute::IntervalSink(T)
- Cute::IntervalSink(T)
 - Cute::Sink(T)
 - Cute::Signal
 - Reference
 - Object
 
Overview
This sink has an internal timer. All collected data is only emitted once the timer triggers. If no data has been collected, the sink does not emit.
See Sink for documentation on the usage.
Direct Known Subclasses
Defined in:
cute/interval_sink.crConstructors
Instance Method Summary
- 
        #interval : Time::Span
        
          
Check interval
 - 
        #interval=(interval : Time::Span)
        
          
Check interval
 - 
        #stop!
        
          
Will eventually halt the internal timer fiber, releasing resources this sink occupies.
 
Instance methods inherited from class Cute::Sink(T)
  
  
    
      emit(data : Array(T)) : Nil
    emit, 
    
  
    
      hit_count : Int32
    hit_count, 
    
  
    
      name : String
    name, 
    
  
    
      new_channel : Tuple(Channel(Array(T)), Cute::ConnectionHandle)
    new_channel, 
    
  
    
      notify(data : T)
    notify, 
    
  
    
      on(&block : Proc(Array(T), Nil)) : Cute::ConnectionHandleon(sink : Cute::Sink(U)) forall U on, stop! stop!
Constructor methods inherited from class Cute::Sink(T)
  
  
    
      new
    new
    
  
    
  
    
  Instance methods inherited from class Cute::Signal
  
  
    
      disconnect(handler_hash)disconnect disconnect, name : String | Nil name, wait wait