title: Attach a callback to a publish
body: <p>I was wondering whether anyone knew of a way to attach an event/callback to a dojo publish when the event that is published completes.</p>
  
  <p>I am publishing something as a delegated task, and when the delegated task completes I want to make some UI changes.</p>
  
  <p>Let me know if you know how or if you know that it's not possible.</p>
  
  <hr>
  
  <p>EDIT: 
  I guess I could also do what I wanted if I was able to return a value to the publisher after the event published finishes.</p>