This should be enough, you can capture whatever type you want inside a closure. 
    
    
    type
      Publisher = ref object
        subs: seq[proc(data: int)]
    
    
    Run

Reply via email to