title: JSch sftp channel runs synchronous?
body: <p>This is what I want to do and I use JSch for it:</p>
  
  <ul>
  <li>copy file A, from server S1 to server S2</li>
  <li>when this is done, do some logic (e.g. send an email about task completion)</li>
  </ul>
  
  <p>What I don't know:</p>
  
  <ul>
  <li>Is JSch doing the write in a new thread or not? What makes it confusing is the fact that ChannelSftp implements Runnable, thus is potentially run as a separate thread.</li>
  </ul>
  
  <p>If it does run it in a separate thread, then I can't add my code after the <code>put</code> method, but need to potentially use the <code>SftpProgressMonitor</code> instead (maybe?!).</p>
  
  <p>Unfortunately I couldn't find anything in their documentation about how the call to <code>put</code> or any other methods would be run - synchronous or asynchronous.</p>